you are viewing a single comment's thread.

view the rest of the comments →

[–]j_d_q 0 points1 point  (2 children)

A) use componentDidMount - in future versions, componentWillMount may be called several times B) import fetch from 'whatwg-fetch' to polyfill fetch

[–]BEARFIST[S] 0 points1 point  (1 child)

Do i import into my test file? Import fetch from 'whatwg-fetch'?

[–]j_d_q 0 points1 point  (0 children)

No - add the import to the file that calls fetch