|
When I run my Modal component inside of a testing-library test, which uses react-modal internally, I get this Warning: react-modal: App element is not defined. Please use |
Replies: 3 comments 1 reply
|
@jsoneaday when you call In this case, |
|
Hi there! Taking a look at your issue regarding For
Best of luck, and hope this guides you to the fix! |

@jsoneaday when you call
setAppElementbefore therenderthe#rootelement is not available yet.In this case,
appElement={el}will be recommended, or, you will need to prepare thedocument.bodyto have the correct elements, before rendering.