What is the main benefit of using React? / Why should we use React at all?
Declarative UI: We just tell react what has changed (using state), react makes the UI in sync with the updated state itself. We don’t need to do manual DOM manipulation ourself, react takes care of that.
Component based architecture & Unidirectional Data Flow via Props: React allows us to write reusable, modular UI components that we can use several times, and also data flows (through props) in a single direction, making the app very predictable and easy to debug.
Virtual DOM: Using virtual DOM react can take intelligent decision to update only the affected section/area of the DOM but now the whole DOM tree.
Open our door to extensive js community: We can write react code in Next.js framework (which is a kind of full stack web application framework) and also create mobile native apps using React Native.