Best way of passing props from Provider to Context
So I'm making a simple context with a Provider "wrapper" as is quite common to wrap functionality. I pass some values to it in JSX that should then be available when using the context.
This works well, but curious as to if there's a smarter way that I'm missing. Solid isn't wrapping reactivity for the
For usage of the provider it looks like this:
This works well, but curious as to if there's a smarter way that I'm missing. Solid isn't wrapping reactivity for the
value attribute, so I need to do something to keep reactivity.For usage of the provider it looks like this:
