Firebase is a great hosting service for a React app, and deploying is surprisingly simple!
To begin, install the firebase tools:
npm install -g firebase-tools
And be sure to install the command line tools:
yarn global add firebase-tools
Run this command to login to your firebase:
Answer the following question with your preference:
You will be directed to google’s sign in page. Choose/login to your google account:
After logging in, return to your command line!
In the root directory of your app, run:
At the above prompt, choose “Hosting: Configure and deploy Firebase Hosting sites”
In this next project setup prompt, choose “Create a new project”
At the above prompts, add a project id of your choice, and decide on what you’d like to call your project (I used the default).
Woo! Next step:
Answer the above prompts accordingly.
You’re ready to go! Run:
Congrats! You’ve got a deployed project!