react-remarkable
react-remarkable copied to clipboard
Unsafe lifecycle methods were found within a strict-mode tree
Running React >= 16.3 with React.StrictMode results in the following warning
index.js:2178 Warning: Unsafe lifecycle methods were found within a strict-mode tree: in Router (created by BrowserRouter) in BrowserRouter (at App.js:13) in Provider (at App.js:12) in Unknown (at index.js:42) componentWillUpdate: Please update the following components to use componentDidUpdate instead: Remarkable Learn more about this warning here: https://fb.me/react-strict-mode-warnings
I've rewritten Remarkable
as a function component to get rid of the outdated lifecycle methods: https://github.com/nicolasschabram/react-remarkable/pull/1. It should be functionally equivalent although I haven't thoroughly tested it yet. Would you accept a PR? @acdlite @mxstbr