But it gets a bit messy. It mixes up multiple DOM logics which makes me wonder if it could cause unintended side effects with React. It would be great if there were built-in React components for this purpose, and allow us to write code like this:
I attempted to create my own version of built-in React modal settings by copying classNames from the inspector. But it would be harder to replicate all the features and eventListeners, and to have it be future-proof. It would be amazing if there were built-in React components for this purpose!
It would be great to have React components for modal settings. At the moment, I can add setting rows to a modal like such:
But it gets a bit messy. It mixes up multiple DOM logics which makes me wonder if it could cause unintended side effects with React. It would be great if there were built-in React components for this purpose, and allow us to write code like this:
I attempted to create my own version of built-in React modal settings by copying classNames from the inspector. But it would be harder to replicate all the features and eventListeners, and to have it be future-proof. It would be amazing if there were built-in React components for this purpose!