How to do it...

I removed some components from the last recipe, and I just focused on the Phrases application. Let's create it by following these steps:

  1. Copy your project configuration and replace it in the file:
  export const fbConfig = {    ref: 'phrases',    app: {      apiKey: 'AIzaSyASppMJh_6QIGTeXVBeYszzz7iTNTADxRU',      authDomain: 'codejobs-2240b.firebaseapp.com',      databaseURL: 'https://codejobs-2240b.firebaseio.com',      projectId: 'codejobs-2240b',      storageBucket: 'codejobs-2240b.appspot.com',      messagingSenderId: '278058258089'    }  };
File: src/config/firebase.js
  1. After this, we need to create a file to manage our Firebase database, and we will export our ref (our phrases table):
  import firebase from 'firebase';  import { fbConfig } from '../../config/firebase'; ...

Get React Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.