Closed rizkiandrianto closed 7 years ago
Never mind, I added this script :
shouldComponentUpdate(nextProps, nextState) {
if (nextProps.data != this.props.data && nextState.data !== this.state.data) {
return true;
}
return false;
}
Did you know how to prevent re-render wordcloud when receive props?