Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

fixes react StrictMode deprecation warnings #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nowheresly
Copy link

When using this library with the latest version of React with StrictMode enabled, two different warning are generated:

  • componentWillMount will be removed in React 17 and should no more be used.

  • ReactDOM.findDOMNode will be removed in React 17 and should no more be used.

This PR just follows the official React documentation (here and here) to fix these warnings.

@juliancwirko
Copy link
Owner

juliancwirko commented Feb 12, 2019

Hi, thanks. But I think this version of library won't work with React 17 anyway. It have to be totally rewritten using new approaches in React introduced in newest versions.

And this needs more tests before publishing it.

@Nowheresly
Copy link
Author

We can't be sure this library will work or not with React 17, but at least with this PR, there is no more any warnings.

As far as the tests are concerned, I was unable to run tests without error. It seems there is an already referenced issue about it (#54 ).

@juliancwirko
Copy link
Owner

Yes, I meant manual tests.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants