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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.