Exercise 2: Firebase in React!

We will run and verify our app after adding Firebase in it.

We'll cover the following


import React from 'react';

const Account = () => (

export default Account;

While there are no changes on the front-end of the application, a new context.js has been created in src/components/Firebase. This will allow us to create Firebase instances whenever needed.


  1. Confirm your source code for this section.

Reading Task

  1. Read more about React’s Context API.

In the next section, we will implement the interface for the Firebase class on our side in order to communicate with the Firebase API.