4 ms·
React is only used on the server. We do not load it in the browser. My apologies in advance for my ignorance, as I have so far read about React, but not actual
by ezequiel-garzon 10y ago
React is only used on the server. We do not load it in the browser.
My apologies in advance for my ignorance, as I have so far read about React, but not actually used it. Isn't the main advantage of React the virtual DOM it sets up and its reconciliation algorithm with the DOM? How can this be applied without using on the client side? Wouldn't all the responsive aspects be lost, requiring a round trip to the server for each event?
Thanks in advance.
- narrowtux 10y agoMaybe they just like to code with a component based framework, but don't actually need dynamic components. That means it would just be a different way to use templates on the server side.
- wldlyinaccurate 10y agoWe've found that React is actually really great for building complex UIs out of small reusable components. I often struggle to put into words just how much better it is than, say, using Mustache templates or PHP/ERB/etc. I think it mostly comes down to how React makes component composition super-easy, and support for higher-order components makes component reuse a breeze.