Update Modal Dialogue notes about styling

Since this uses a 'portal' that is agnostic of implementation, the note should be updated to reflect this could just go right next to the body tag. This should be easy enough to do with another react-dom, but if people can't figure that out on their own...
This commit is contained in:
Robert Mennell
2018-11-29 00:32:16 -08:00
committed by GitHub
parent 2e68aa933a
commit 138b7cf7eb

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 that the modal 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 -->