Currently, I have CategoryContext to manage Category state, ModalContext to manage Modal state.
<Layout>
<ModalContext.Provider>
<Route>
<CategoryContext.Provider />
<CategoryPage />
</Route>
<ModalContext.Provider />
</Layout>
I'm just move from redux to react-hook to manage state. Then I'm not sure my solution is good or not? I'm happy to get more idea from social :)