I have these two methods which I need to convert to useEffect hook.
What I have tried so far doesn\'t work:
componentWillReceiveProps(nextProps) {