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.
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.
Written by