Re:React Makes You Sad?
by squeaky-clean on Monday February 29, 2016 @02:19PM
(#11197546)
React Native [0]. Your view-specific code still has to be done per-platform, but your core logic can be shared, and all of it is written with Javascript using React as the framework. The JS creates and controls native elements, with the native parts mostly abstracted away.
Exactly this, made even simpler by the naming scheme that lets you have iOS and Android versions of the same component.
You can write much view code in a way that abstracts over the DOM/Native platform, too, using standard abstraction techniques.
I'm referring to native apps on iOS and Android as the code commonality is huge, with just a small number of platform specific components. The biggest surprise though was how much I could port out for a web version (and Electron based Windows and Mac applications)
Are you referring to native apps, or do you mean by making a Web app with React you don't need to make native apps?