Closed gregrickaby closed 2 years ago
Because I removed Tailwind, I might as well spin up a provider as part of #26. Less to juggle!
I feel like global-y things like Menus, Settings, SEO, etc... should be managed in a new
<WordpressProvider />
component, rather than passed down by every query.
Yeah, I agree, this would be a better solution.
I feel like global-y things like Menus, Settings, SEO, etc... should be managed in a new
<WordpressProvider />
component, rather than passed down by every query.<WordPressProvider />
component (it should follow this pattern)useWordPress()
hook_app.tsx
useWordPress()
hook to grab the state and pass into other components like,<Layout />