Pros And Cons Of React

[!INFO]-
topic: πŸ–₯️ Tech
links:


React is a client-side JS library to build interactive web frontends and Single Page Applications.

React is a client-side JS library to build interactive web frontends and Single Page Applications.

It uses JSX to implement HTML code into your JS code. That JSX code is compiled to vanilla JS for the browser.

ProsCons
easy to manipulate state via its statedoesn't do much for you, so you need several other libraries (e.g. routing)
very light-weight without the other librariesreact uses a poll mechanism for updates, requiring it to check on every component if it needs to be re-rendered once the state changes, causing many unnecessary re-renders
huge community and librariesoften needs other libraries like Redux, react-router etc.
funded by Metausing JSX it is dependent on babel for compiling
loads a ton of JS for client-side rendering (without stuff like next.js)