hooks (the custom hooks with the business logic: dispatch to redux, get data, ecc)
layout (the wrap components that define the layout of the page)
models (typescript interface)
slices (createSlice for redux toolkit)
store (the store of redux)
view (contains the pages of the routing with layout and components)
How to you think about this structure?
All of components are in functional component, and the component in general is only for HTML and for call a custom hooks to get the business logic.
I used this structure:
How to you think about this structure?
All of components are in functional component, and the component in general is only for HTML and for call a custom hooks to get the business logic.
I think this is the same as my setup with just additional folders.
hey, my dear friend, have you tried concent? that will make state management much easier than u experienced before.
No, I always used Redux.
Now with Toolkit, Redux is very simple.
In the last month I tried RecoilJS (by Facebook).
Thanks for your advice, I will try to us concetjs!
big thx, u just need one min to read its quick start and then know how funny it is 😀