Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> React and Htmx do not interact nicely.

I want to dig into this a bit. React of course maintains its own rendered part of the DOM and htmx trying to reach into and change any part of that DOM is not going to go over well. It's just going to be replaced with React's rendering again on the next render cycle.

htmx provides two points at which it can interact with other libraries or frameworks: DOM events and CSS classes. I don't see any problem with classes, but React's synthetic events would probably not work well with htmx (or any other non-React library really). Maybe frameworks like Preact which use real DOM events would work better.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: