Right now, I have a react portal rendering a ‘pinnable’ side drawer modal that will display based on a redux state. The contents of the modal will have information based on where that modal was pinned from, in this case my notifications. The problem I’m running into at the moment is that since the modal will be pinnable in multiple
Tag: react-portal
How to preview component with react portal using storybook.js
I implemented a Popper component using popper.js, and I used React’s Portal to render popper element. And now I want to preview my popper component, but It fails to create portal on storybook.js Here’s my approach. .storybook/preview.js Portal.tsx Capture of Error Message Is there any way to show component using react portal on storybook? If not, is there other way