React: Finally, a great server/client web stack
eflorenzano.com
React: Finally, a great server/client web stack
1–10 of 134 posts
Re: React: Finally, a great server/client web stack
#2Re: React: Finally, a great server/client web stack
#3I don't want to write a bunch of markup next to my javascript.
Now if you want to physically separate the view logic and the corresponding markup generation, that's more debatable: they're extremely strongly coupled (and in fairly small chunks ideally) so you often can't trivially change one without the other, and thus keeping them together makes logical sense. See Pete Hunt's presentation which lumpypua linked, it tries to make that point fairly nicely.
[0] https://github.com/swannodette/om
[1] https://github.com/edn-format/edn
Re: React: Finally, a great server/client web stack
#4Also, 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.
Re: React: Finally, a great server/client web stack
#5Re: React: Finally, a great server/client web stack
#6I don't want to write a bunch of markup next to my javascript.
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
#7Wouldn'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.
Re: React: Finally, a great server/client web stack
#8I don't want to write a bunch of markup next to my javascript.
http://2013.jsconf.eu/speakers/pete-hunt-react-rethinking-be...
Re: React: Finally, a great server/client web stack
#9Wouldn'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.
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 again to be faster than generating it from the raw data on the client, and definitely gives the impression of faster loading.
Re: React: Finally, a great server/client web stack
#10I don't want to write a bunch of markup next to my javascript.
But consider that usually JS to control a view is inextricably linked to the underlying HTML and you need to modify both whenever making any change regardless -- since that's the case, you might as well combine all of the code and markup for the view in one place. Work to separate concerns, not programming languages.