3 ms·
The single state example the author provides in React seems more like a poor choice of data structure, if anything. I was expecting something more concrete or i
by koito17 4y ago
The single state example the author provides in React seems more like a poor choice of data structure, if anything. I was expecting something more concrete or intricate, like "I want to interface with something that bangs on objects and mutates state in subtle ways that is incompatible with React". I can easily think of some interesting examples (e.g. attempting to use a CodeMirror view as a controlled form input), but I wouldn't say React "is hostile" to CodeMirror.
I've heard of Svelte but the only remarkable thing I hear about it is code-splitting, but I already have that together with live reloading and precise redefinition in modules when I use ClojureScript and React. So I don't know what I gain by changing tooling here. I guess it'd be nice to finally get a taste of what its like to not use Google Closure Compiler... but I do not want ever want to hard refresh a page or lose state simply because I changed the definition of a single variable.