2 ms·
They’re much different than mutable variables with a different syntax. Changing them causes your component to render and reflect changes.
by steve_adams_86 5y ago
They’re much different than mutable variables with a different syntax. Changing them causes your component to render and reflect changes.
- nsonha 5y agothat doesn't matter. Look at frameworks in which you have states that when mutated, trigger a rerender, such as svelte. Suddenly (scattered) setState calls are not very different than (scattered) assignment statements