Logo Awesome React

Awesome React

Test React Portals

  • Details
How to Test React components that use React.createPortals


CodeSandbox: https://codesandbox.io/s/github/kentcdodds/react-testing-library-examples/tree/master/?module=%2Fsrc%2F__tests__%2Fportals.js&previewwindow=tests