Skip to content
Advertisement

Tag: react-modal

“Warning: react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`”

How do I fix this warning in console of a React app using the react-modal package: Warning: react-modal: App element is not defined. Please use Modal.setAppElement(el) or set appElement={el} I have not been successful at figuring out what el is supposed to be. Context: in my App.js root component file: Where … indicates code not shown. Everything works fine, but

Advertisement