Build and deploy react app on Firebase in 2021

What is Firebase?

Build and deploy in 7 easy steps

Step 1: NPM install and create react-app

npx create-react-app my-pwa-app --template cra-template-pwa

Step 2: Install Firebase CLI

npm install -g firebase-tools

Step 3: Login to firebase

firebase login

Step 4: Initialize Firebase

Firebase init selection screen
firebase init selection screen

Step 5: Create build

npm run build

Step 6: Deploy!

Step 7: Enjoy!

Closing thoughts

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store