Advantages of React
I recently decided to built some basic applications with React. If you know basic JS it is relatively straight forward. A few bullet points:
- React Pros
- It's easy to see how a component is rendered - it is right in the render function!
- Since each part of an app should be built into its own component, it is incredibly easy to follow functionality. This makes debugging and maintainance pretty simple
- It works with most frameworks. I rebuilt portions of an AngularJS application to render using React with very little issue.
- The Virtual DOM - React knows when to render the view because it is aware of data changes.
- There are many react-addons which offer high versatility - For example, state management: redux, or graphing abilities: recharts.
- React Negatives
- React only serves as the view, although there are compatible tools to simplify state management
- Integrating ReactJS into some MVC frameworks requires additional configuration.
- Writing components isn't as straight forward as plain HTML/CSS, there is a learning curve for the new syntax