react-simple-maps icon indicating copy to clipboard operation
react-simple-maps copied to clipboard

Replace componentWillReceiveProps with componentDidUpdate

Open jonthomp opened this issue 6 years ago • 0 comments

componentWillReceiveProps will be renamed UNSAFE_componentWillReceiveProps in react 17 and reults in console errors when run in React strict mode.

This PR replaces all use of componentWillReceiveProps with componentDidUpdate. While this should be sufficient, more optimizations might be found switching to some memoized functions.

jonthomp avatar Jun 27 '19 21:06 jonthomp