Content pfp
Content
@
0 reply
0 recast
0 reaction

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
Treat React Hooks for what it is – a separate programming language. Hooks happen to use JavaScript-y syntax and package mechanisms, but they ignore all the usual conventions around references and closures due to the implied re-rendering loop and are thus incompatible with the rest of the JavaScript ecosystem.
3 replies
3 recasts
25 reactions

Marc BHE Season đŸ–â˜Łïž pfp
Marc BHE Season đŸ–â˜Łïž
@bighamenergy.eth
Since I adopted zustand hooks are gone forever, it even allows me to work in a Vanilla style if i want, state management and interactions are pretty easy now, just sharing in case it's useful to not get so entangled with react https://zustand-demo.pmnd.rs/
1 reply
0 recast
2 reactions

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
Have you used Zustand outside of a React project before? Curious what that experience is like.
2 replies
0 recast
1 reaction

Marc BHE Season đŸ–â˜Łïž pfp
Marc BHE Season đŸ–â˜Łïž
@bighamenergy.eth
Not yet, don't have much time for side hustles, but if I ever start one it's really likely that zustand might be the state management choice. It's composable and type safe. Also it's really easy to use it scoped for small context or even centralized for bigger ones, dope lib srsly
1 reply
0 recast
1 reaction

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
Heard great things about it! Thanks for sharing!
1 reply
0 recast
1 reaction