Merge pull request #24 from 30-seconds/UPDATE-modal-dialogue-note-about-portals

Update Modal Dialogue notes about styling
This commit is contained in:
Robert Mennell
2018-11-29 02:04:16 -08:00
committed by GitHub

View File

@ -133,7 +133,7 @@ ModalDialog.show({
```
#### Notes:
* This component includes a lot of CSS, which might conflict with other CSS in your project.
* This component includes a lot of CSS, which might conflict with other CSS in your project. It is recomended for the modal to be a direct child of the body tag.
* A more up-to-date method with lower compatibility is to use [Portals](https://reactjs.org/docs/portals.html) in React 16+.
<!-- tags: visual,static,children,state,class -->