News for hackers. Stuff that matters.
Re:Svelte 5: Runes by satvikpendem on Wednesday September 20, 2023 @04:11PM (#37589488)
> hooks + context make all of these libraries pretty much unnecessary for most react apps as they are not that complex

To be fair, context is not a state management tool [0], an article by acemarke, the Redux maintainer. It does work as a dependency injection tool and for many people, that's enough, but it's not a true state management tool.

[0] https://blog.isquaredsoftware.com/2021/01/context-redux-diff...

Re:Svelte 5: Runes by bafe on Thursday September 21, 2023 @02:00AM (#37593745)
React context is is just a way to bridge props deep down a component hierarchy. By combining it with an appropriate hook you can almost obtain the effect of a state manager like redux. There are limits to this however; being just a way to pass props it doesn't give you any fine control over reactivity
Re:Svelte 5: Runes by satvikpendem on Thursday September 21, 2023 @02:03AM (#37593769)
Yes, that is indeed what the article I linked says.
Re:Svelte 5: Runes by rmilejczz on Sunday September 24, 2023 @02:15PM (#37635672)
I did hooks + context, not just context. Hooks + context together can be cobbled together into an adequate state management solution for most apps, this article even agrees with me. So not sure what your point is lol