forked from neurodynamic/reactjs.org
-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
Thank you, @neurodynamic, for putting this site together. Loving React so much more since the introduction of hooks! I've been learning more about context and hooks and specifically, on:
https://reactwithhooks.netlify.app/docs/context.html#updating-context-from-a-nested-component,
is this the only way to pass the toggleTheme
function down to all children? To set up another context? It just seems having to set up multiple providers (one for being the theme and one for changing the theme) feels awfully clunky.
Is there any better way to just put all theme-related functionality (defining and toggling) into a single context?
PS. A big thanks to armenic. That's how I found this website!
neurodynamic
Metadata
Metadata
Assignees
Labels
No labels