To initialize a React project, we can use the create-react-app tool, which sets up the environment for React development, including the following:
- Babel, so that we can use the JSX and ES6 syntaxes
- It even includes language extras beyond ES6, such as the object spread operator, which we are going to make use of later
- Additionally, we could even use TypeScript and Flow syntax
Furthermore, create-react-app sets up the following:
- Autoprefixed Cascading Style Sheets (CSS), so that we do not need browser-specific prefixes such as -webkit
- A fast interactive unit test runner with code coverage reporting
- A live development server, which warns us about common mistakes
- A build script, which bundles JavaScript, ...