Click here to Skip to main content
15,896,493 members
Articles / Web Development / React

Where to Fetch Data: componentWillMount vs componentDidMount

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
21 Mar 2017CPOL2 min read 8.1K  
When you need to fetch some data for a React component, where do you do it?

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
Dave is a Software Engineer in the Boston area and writes about AngularJS and other JavaScript things over at daveceddia.com

Comments and Discussions