there is a package called constate can help you simplify most of the context part
instead of putting the logic inside ThemeProvider wrapper
you can simply create a hook called useTheme and all component that use it will share the same hook instance
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
there is a package called
constate
can help you simplify most of the context partinstead of putting the logic inside
ThemeProvider
wrapperyou can simply create a hook called
useTheme
and all component that use it will share the same hook instance