GitHub - hiroyuki12/firebase-hosting-react-pages
$ create-react-app で作成したプロジェクトでは最初のページが表示された
$ npm install -g firebase-tools
$ rm -rf node_modulesして、$ npm install
プロジェクトのルートフォルダで、$ firebase loginして、$ firebase init
Hosting: Configure files 〜 をスペースで選択して、Enter
? What do you want to use as your public directory? で build と入力
? Configure as a single-page app (rewrite all urls to /index.html)? で y と入力
? Set up automatic builds and deploys with GitHub? で n と入力
? File build.index.html already exists. Overwrite? で y と入力
$ npm run build
$ firebase deploy
https://fir-react-add68.web.app
(初心者向け)Firebase HostingへReactプロジェクトを公開する手順 - Qiita
更新して、
$ npm run build して、
$ firebase deploy すると、更新される。