React.js Project to Upload Files to Firebase v9 Cloud Storage in Browser Using Javascript

 

 

Welcome folks today in this blog post we will be uploading files to firebase v9 cloud storage in browser using javascript.

 

First of all we need to create a new react.js project using the below command

 

 

npx create-react-app uploadfile

 

 

where uploadfile is the name of the project

 

 

And now you need to install the firebase library

 

 

cd uploadfile

 

 

npm i firebase

 

 

Now you need to configure the firebase object and copy paste the below code

 

 

firebase.js

 

 

 

 

Here you need to get this code from your own firebase project

 

 

 

 

 

And now you need to create the App.js file and copy paste the below code

 

 

App.js

 

 

 

 

npm start

 

Leave a Reply