Merge pull request #24 from 30-seconds/UPDATE-modal-dialogue-note-about-portals
Update Modal Dialogue notes about styling
This commit is contained in:
@ -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 -->
|
||||
|
||||
Reference in New Issue
Block a user