-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content: add Component Composition > Context
#42
Comments
The equivalent for Vue 3 is Provide/Inject: https://vuejs.org/guide/components/provide-inject.html |
React & Svelte examples are now available |
Hi @matschik , Was trying to understand the goal of these code snippets. Could you give a bit more context (no pun intended) of what is the goal of this example? |
Explained by React docs: https://beta.reactjs.org/learn/passing-data-deeply-with-context Context VS Store (from Svelte link)
Additionnally, |
For Angular , Is it to good to mention service in this place? Yeah there is no such concept of context but using service we can eventually achieve that behavior. |
React: https://fr.reactjs.org/docs/hooks-reference.html#usecontext
Svelte: https://svelte.dev/tutorial/context-api
Vue 3:
SolidJS: https://www.solidjs.com/tutorial/stores_context
The text was updated successfully, but these errors were encountered: