5 ms·
I would love to see React added to mobile app frameworks like Apache Cordova.
by thasmin 12y ago
I would love to see React added to mobile app frameworks like Apache Cordova.
- andyl 12y agoYou can use ReactJS now with Cordova/PhoneGap - no problemo. This announcement is about replacing html elements (div, h1, img, etc.) with native elements. Should be faster going native than via web elements.
- arenaninja 12y agoOh snap. This is HUGE
- pbreit 12y agoSo does it use PhoneGap or something like it?
- lucasmullens 12y agoNo, because PhoneGap uses the DOM.
- zpao 12y agoNo, it skips the DOM entirely and works with native elements (iOS views) directly.
- diverightin63 12y agoThis is where I get confused. How is it compiling to these elements?
- eyko 12y agoThat's the million dollar question and tomorrow we might get an answer.
- smadge 12y agoOne possibility: You have a JS interpreter running your React code. You generate a virtual DOM and hand it off to React. React sends the virtual DOM through a message bus to native code. So far, nothing crazy here, this is how frameworks like cordova work. That native code dynamically translates the virtual DOM into native UI elements.
- jbhatab 12y agocheck out http://touchstonejs.io/ http://touchstonejs.io/