3 ms·
Why? React brings sanity to the web UI world. It brings reusable components! It brings composition. It brings modularity. ... and it's written by adults who k
by api 11y ago
Why?
React brings sanity to the web UI world. It brings reusable components! It brings composition. It brings modularity.
... and it's written by adults who know CS. Your UI is a pure function of your state. Who knew?
Why would I use anything else? Really? Do I want state-management spaghetti and over-engineering?
The only way I'd give up React for dynamic sites/pages is if the web standards groups made Web Components into something that was actually as good as React and baked this into the stack. But somehow I doubt that's going to happen. Web Components might turn into something good to compose UI but you'll probably still need React to add dynamic behavior to it.