3 ms·
React works great in existing websites! Last time I checked, React is about the same size as jQuery minified and gzipped. There are many benefits to using Reac
by clessg 11y ago
React works great in existing websites! Last time I checked, React is about the same size as jQuery minified and gzipped.
There are many benefits to using React in an existing website: a great developer experience, performance, avoiding jQuery spaghetti, ease-of-use, etc. It might be overkill to use React for just a few components, but if you want to move to React, then you can incrementally implement components using React and then switch over fully.
> Is it only for SPAs?
In my opinion, React is like the declarative jQuery. It works just as well for SPAs as it does for traditional websites.