Replies: 1 comment 1 reply
-
I advise not to render Modal for each cell, add one Modal component that will handle all cells. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now there is an empty div in the dom even the modal itself is closed. In my case I have a datagrid where each cell is a button that can open a modal when click. only a few of them will be opened at a time, others will be in closed state most of the time. In the current modal implementation If I have hundreads of those cells it will generate hundreds of empty divs in the dom for nothing.
Beta Was this translation helpful? Give feedback.
All reactions