where the fuck actually data is getting stored??
how to create my own?
are most of the global state management lib just wrapper of useSyncExternalStore?
useful resources helped me to understand this better:
- https://judehunter.dev/blog/how-to-write-your-own-state-management-library
- https://dev.to/paripsky/build-your-own-react-state-management-library-in-under-40-lines-of-code-with-typescript-support-hji
- https://react.dev/reference/react/useSyncExternalStore#subscribing-to-a-browser-api
- https://judehunter.dev/blog/how-to-write-your-own-state-management-library
- https://www.youtube.com/watch?v=OdIYFt5zyQ8
- https://vijitail.dev/blog/basic-state-management-library-using-vanilla-javascript
- https://frontendmastery.com/posts/the-new-wave-of-react-state-management/