Wouldn't this make it even more difficult for search engines to index your pages? Also, I'm not sure we want a full rendering on the server. That will make the page appear to have a longer loading time rather than the other way around. Unless I'm misunderstanding what you're trying to say. It does sound interesting though. I'm looking forward to your follow up posts.
Various companies (in one famous case, Twitter) have found that server rendering beats client rendering for initial rendering speed. React is designed so that if you care about server rendering, you can have the best of both worlds -- using Node you can render a component to HTML on the server, then pick it up the prepopulated DOM in client-side JS once your page loads. Since the server sends down plain HTML, search…
React: Finally, a great server/client web stack
11–20 of 134 posts
Re: React: Finally, a great server/client web stack
#12I don't want to write a bunch of markup next to my javascript.
JSX isn't markup - it's XML which translates to Reacts internal representation which looks something like: bar --> React.DOM.div({ className: 'foo', children: 'bar' }) You don't have to use it - it's a convenience provided for designers (and arguably developers who have realised that templating provides a false separation of concerns). Om notably ( https://github.com/swannodette/om ) ignores it.
Re: React: Finally, a great server/client web stack
#13Wouldn't this make it even more difficult for search engines to index your pages? Also, I'm not sure we want a full rendering on the server. That will make the page appear to have a longer loading time rather than the other way around. Unless I'm misunderstanding what you're trying to say. It does sound interesting though. I'm looking forward to your follow up posts.
Various companies (in one famous case, Twitter) have found that server rendering beats client rendering for initial rendering speed. React is designed so that if you care about server rendering, you can have the best of both worlds -- using Node you can render a component to HTML on the server, then pick it up the prepopulated DOM in client-side JS once your page loads. Since the server sends down plain HTML, search…
Re: React: Finally, a great server/client web stack
#14Wouldn't this make it even more difficult for search engines to index your pages? Also, I'm not sure we want a full rendering on the server. That will make the page appear to have a longer loading time rather than the other way around. Unless I'm misunderstanding what you're trying to say. It does sound interesting though. I'm looking forward to your follow up posts.
> Wouldn't this make it even more difficult for search engines to index your pages? If the string rendering is your initial page[0], why would it be difficult for crawlers do index pages? > Also, I'm not sure we want a full rendering on the server. That will make the page appear to have a longer loading time Servers tend to be beefy and have caches up the ass. Serving a pre-rendered "home" has been found time and aga…
Re: React: Finally, a great server/client web stack
#15Any demo? Or I guess it's at the end of the series.
Re: React: Finally, a great server/client web stack
#16Re: React: Finally, a great server/client web stack
#17This is confusing. http://www.reactjs.com/ , which I believe predates this other react.js
Re: React: Finally, a great server/client web stack
#18Or you could just use HTMLbars/Handlebars. Seems like "JSX" is just a more complicated version of a Mustache-esque logic-less template.
Re: React: Finally, a great server/client web stack
#19Re: React: Finally, a great server/client web stack
#20> You can choose to use this, but after getting over my initial distaste for it ("Ack! Who got markup in my code!"), I could never go back to not using it. Or you could just use HTMLbars/Handlebars. Seems like "JSX" is just a more complicated version of a Mustache-esque logic-less template.