React is not a framework
React is just a library where you make all decisions by yourself. React is a user interface using components. The framework is where some decisions make already. Angular is a framework where already some decision build.
Every setState call informs React about state changes. Then, React calls the render method to update the component's representation in memory and compare it with what’s rendered in the browser. Child components know that they need to re-render because their props changed.
React don’t need Flux
Redux is great. But you might not need it.
React Optimizing Performance
Create react App:
npx create-react-app my-app
If the project builds with create react app run:
-> npm run build
This will create /
Production-ready versions of React and React DOM as single files
For the most efficient Brunch production build, install the
Then, to create a production build, add the
-p flag to the
For the most efficient Browserify production build, install a few plugins:
For the most efficient Rollup production build, install a few plugins:
Webpack v4+ will minify your code by default in production mode.