Re:React v0.12
by bostonvaulter2 on Tuesday October 28, 2014 @07:22PM
(#8524363)
I've been looking into React.js recently and I have a general question. Is it possible to use React.js with zurb foundation cleanly? It appears that it will not work well because Foundation expects to modify the state of the DOM for Foundation elements. Are there any workarounds?
[ Parent
| on HN ]
After looking into this I've come to the conclusion that rewriting the JavaScript to handle events through React's system is the best way to include Foundation's JS components. (This is something I'm planning to do with Foundation-for-Apps since I won't be using Angular).
That said, the styles are still usable without modification and you could tell React to not handle pieces of the DOM in some cases for the existing JS.