3 ms·
1)Where do you make your api calls in componentDidMount or componentWillMount ? 2)Are you using Redux to manage all of your state? Is it getting too verbose?
by shsethi 10y ago
1)Where do you make your api calls in componentDidMount or componentWillMount ?
2)Are you using Redux to manage all of your state? Is it getting too verbose?
- veetesh 10y agocomponentDidMount is the right place to call for an API. if you are interested in server-side rendering would recommend this post https://blog.tableflip.io/server-side-rendering-with-react-and-redux/ https://blog.tableflip.io/server-side-rendering-with-react-a... yes we use redux and strongly follows its design pattern.
- shsethi 10y agoThanks for that link. Have you guys looked into MobX?