Skip to content

Commit

Permalink
add another FAQ to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Brown committed Feb 10, 2020
1 parent 5c24994 commit ec0d6ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ Shares props with `<BaseModal>`

## FAQ

* Why won't my modal render when `isOpen` is set to `true`?

You most likely haven't placed a `<div id="modal-root"></div>` within your HTML file. Without this, the modal doesn't know where to render to. If that doesn't fix the issue, feel free to open a new issue on this repository.

* Why am I getting `ReferenceError: globalThis is not defined`?

You're using this library in an environment that does not support the `globalThis` keyword out-of-the-box. You will need to **use a polyfill for `globalThis`** to fix the error. I recommend that you use [@ungap/global-this](https://github.com/ungap/global-this)
Expand Down

0 comments on commit ec0d6ff

Please sign in to comment.