install to react before project code example Example: create a new project with create-react-app npx create-react-app project-name