|
|
|
|
|
by andrewfromx
1020 days ago
|
|
In React, you typically manage state changes manually using setState or hooks. While libraries like Redux can help with state management, React doesn't provide automatic two-way data binding out of the box like Svelte. Also no virtual DOM with Svelte. Why did I chose one over the other? I didn't. I just worked on various projects over the years and inherited code where someone else made this choice. Which is better? It's like the line from war games, the correct answer is not to play. Just don't use any JS framwork at all. Keep everything server side rendering and minimal JS code only when absolutely necessary. |
|