react class state update if greater than code example
Example: react lifecycle hooks
class Content extends React.Component {
// ...
componentWillMount() {
this.setState({ activities: data });
}
// ...
}
class Content extends React.Component {
// ...
componentWillMount() {
this.setState({ activities: data });
}
// ...
}