August 2017
Beginner
374 pages
10h 41m
English
In Chapter 6, Interfacing with APIs, we used fetch to make the API requests. Unfortunately, this function does not work on the server side without importing it from the isomorphic-fetch library.
Perform the following steps to replace fetch with isomorphic-fetch:
npm install --save isomorphic-fetch
import fetch from 'isomorphic-fetch'
import fetch from 'isomorphic-fetch'
Read now
Unlock full access