News for hackers. Stuff that matters.
Re:Svelte 5 Released by jbhoot on Sunday October 20, 2024 @03:57AM (#41893728)
> all data manipulation (∆) happens outside of React components,

I do something similar. State and its management lives outside the React components, which only consume this state via hooks. Keeping the state in chunks, and outside the tree lets me access a chunk of state only in the components that need it.

This results into minimum amount of re-rendering of components. Component code also looks cleaner and easier to read.

Re:Svelte 5 Released by datavirtue on Sunday October 20, 2024 @11:03AM (#41895783)
This many years on and we are still trying to figure out state management. Wasn't React designed for the view?
Re:Svelte 5 Released by jbhoot on Monday October 21, 2024 @07:06AM (#41902861)
The marketing has kept changing.

I have always found state management easier in React if I keep it out of React.