Hi, Matt!

You’re right actually — the right way is to fetch inside componentDidMount.

As for error handling, good question! I would dig into redux-thunk for more control over async actions.

Software engineer, tech journalist, startups. Stay up to date https://thewholesome.dev, www.startupscrushing.com Twitter @ https://twitter.com/lasnindrek

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store