create-react-app firebase-deploy
cd firebase-deploy
npm i -g firebase-tools
firebase login
firebase init
#### What do you want to use as your public directory? (public) build
#### Configure as a single-page app (rewrite all urls to /index.html)? Yes
#### File build/index.html already exists. Overwrite? No
Now, you will need to create a new project. To do so, go inside your Firebase console (https://console.firebase.google.com/), click on the add project button, give it a name and create your new project.
After your app is initialized, add your newly created project using the following command and create an alias for the project (here I choose firebase-react-deploy).
firebase use --add