installing firebase in react code example
Example 1: install firebase npm
$ npm init
$ npm install --save firebase
Example 2: install firebase in react
$ npm install firebase
# or
$ yarn add firebase
Example 3: install firebase npm
$ npm init
$ npm install --save firebase