Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: render(...): Replacing React-rendered children with a new root component #1936

Closed
chunsch opened this issue Oct 13, 2017 · 1 comment
Assignees

Comments

@chunsch
Copy link

chunsch commented Oct 13, 2017

Version

2.0.0-beta.6

Environment

Windows 10, Chrome 61.0.3163.100, react 16.0.0

Reproduction link

https://github.com/icodytan/antd-issue

Steps to reproduce

git clone https://github.com/icodytan/antd-issue
yarn # or npm install
yarn start # or npm start

Click showAlert or showActionSheet

What is expected?

No error and hide modal

What is actually happening?

Warning: render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render.

Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

@silentcloud
Copy link
Contributor

@icodytan I have fixed the error, but animation has not been fixed on dismissing modal.

Per facebook/react#9808, Modal is not recommended use with React 16.

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

No branches or pull requests

2 participants