3 ms·
> you can arbitrarily render a React root anywhere I think this exact capability is what led to such strong React adoption. It's almost viral within an applica
by acidbaseextract 6y ago
> you can arbitrarily render a React root anywhere
I think this exact capability is what led to such strong React adoption. It's almost viral within an application. The main application that I worked on a few years ago was on Backbone / Marionette and we evaluated React by writing several small but complicated nested components, with state controlled by existing mechanisms. After liking both the flux application architecture and the ease of gradual transition, we pulled the trigger on React. It slowly ate our application from the inside out, but never forced our hand.
React isn't "lightweight" (JSX being the primary hurdle), but it is very easy to adopt incrementally!
- nojvek 6y agoWhy is Jsx a hurdle? Because you need a transpiler? I find it the other way. Vue has a big learning curve. Learning their special directives and double binding gotchas takes a while. While jsx is a very thin layer for existing Js. All control flow is good ol js. The tags just translate to createElement/h calls. React (class based React) was easy to pick up.
- acidbaseextract 6y agoYes, the transpiler (though everybody is already bundling these days). I really like JSX, though it's not everybody's cup of tea. I also think other folks in this thread are referring to mounting on existing DOM in jQuery-esque use cases.