Is there away to pass all variable to all children components
I want to do simple i18n:
I found this: https://primitives.solidjs.community/package/i18n/
It seems great for big site but mine is super small so it seems to overkill to use that package.
2 Replies
nevermind me, I think the
useContext
can solve my problem: https://docs.solidjs.com/reference/component-apis/use-context#usecontextYep, classic use case for context