TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

React: Finally, a great server/client web stack

233 pointsby julienover 11 years ago

16 comments

ForHackernewsover 11 years ago
Am I the only one that kind of thinks most websites should just be static pages? Like, I get pretty irritated when I go to read a blog post on Medium or wherever and it loads a header and a blank page, and then loads a bunch of javascript (mostly tracking and analytics frameworks), and finally goes out and gets the actual content. And then if I scroll down, it has to load some more garbage from Disqus or something.<p>PLEASE JUST GIVE ME A STATIC PAGE WITH YOUR CONTENT.<p>I really do not care if the comments don&#x27;t refresh live.
评论 #7112455 未加载
评论 #7111945 未加载
评论 #7112474 未加载
评论 #7112461 未加载
评论 #7114015 未加载
评论 #7111901 未加载
评论 #7114151 未加载
评论 #7111835 未加载
评论 #7114726 未加载
评论 #7112210 未加载
评论 #7117951 未加载
评论 #7112332 未加载
评论 #7111907 未加载
评论 #7111777 未加载
评论 #7114475 未加载
评论 #7112091 未加载
评论 #7112588 未加载
评论 #7114021 未加载
评论 #7121549 未加载
评论 #7111942 未加载
评论 #7112572 未加载
评论 #7112269 未加载
rubiquityover 11 years ago
If you used this with Backbone, could you throw Backbone&#x27;s entire View object away and use this instead?
评论 #7111646 未加载
评论 #7111605 未加载
评论 #7118969 未加载
评论 #7112416 未加载
thrushover 11 years ago
Wouldn&#x27;t this make it even more difficult for search engines to index your pages?<p>Also, I&#x27;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&#x27;m misunderstanding what you&#x27;re trying to say.<p>It does sound interesting though. I&#x27;m looking forward to your follow up posts.
评论 #7111319 未加载
评论 #7111311 未加载
telover 11 years ago
Can someone explain to me what &quot;isomorphic&quot; means in the tagline for the linked Director library[1]? I have no idea how isomorphism is supposed to play into all of this?<p>[1] &quot;a tiny and isomorphic URL router for JavaScript <a href="http://github.com/flatiron/director&quot;" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;flatiron&#x2F;director&quot;</a>
评论 #7112938 未加载
tomphooleryover 11 years ago
&gt; You can choose to use this, but after getting over my initial distaste for it (&quot;Ack! Who got markup in my code!&quot;), I could never go back to not using it.<p>Or you could just use HTMLbars&#x2F;Handlebars. Seems like &quot;JSX&quot; is just a more complicated version of a Mustache-esque logic-less template.
评论 #7111623 未加载
评论 #7111594 未加载
评论 #7111685 未加载
评论 #7114757 未加载
lsdafjklsdover 11 years ago
I come from an Ember.js background and its router &#x2F; nested layout management is the best I have used. I like react, and have been diving into OM as well in my free time, but I&#x27;m not sure of the best way to approach routing &#x2F; page transitions.<p>When I start an app, I do not think from the bottom up, which is the react way. I want to start with the login page and redirects, or get the major page transitions down. I&#x27;ll be interested in seeing how you approach that.
评论 #7111895 未加载
sahatover 11 years ago
I would be interested to know what exactly React solves when we already have so many options - Ember, Angular, Backbone to do the same thing.<p>Why would one want to increase the complexity of the application by introducing &quot;yet another new thing&quot; on an already complex architecture.<p>I am just not sold on React. If someone could show a demo of why should we use React instead of, Backbone.View for example, then we can talk.
评论 #7113592 未加载
评论 #7113560 未加载
评论 #7116454 未加载
xixixaoover 11 years ago
The lack of understanding and amount of hatred against web applications (different from web pages) is both sickening and rejuvenating. It is sad because the article is fairly clear, it describes the future of most computing (since most &quot;human&quot; computing will happen on the web) and it really shouldn&#x27;t be hard to understand. But I am glad that most of the top commenters here instead focus on hating &quot;webdevs&quot;. It means these people will stay on the desktop and won&#x27;t create clones of desktop applications in the browser (see google docs for a missed opportunity of a better office system). History will show which way things shifted, no need to flame about it here now.
jamesbrittover 11 years ago
This is confusing. <a href="http://www.reactjs.com/" rel="nofollow">http:&#x2F;&#x2F;www.reactjs.com&#x2F;</a>, which I believe predates this other react.js
评论 #7111455 未加载
kitdover 11 years ago
<a href="http://www.ractivejs.org/" rel="nofollow">http:&#x2F;&#x2F;www.ractivejs.org&#x2F;</a> is another similar client-side view framework that uses a shadow DOM.<p>I don&#x27;t know how suitable it would be for server-side rendering though.
jbejaover 11 years ago
I am learning how to make desktop apps with Reactjs + Backbone + PouchDB and Brackets-Shell just for fun and learning purposes, so far it has been a very exciting experience.
评论 #7118839 未加载
hamxiaozover 11 years ago
Any demo? Or I guess it&#x27;s at the end of the series.
评论 #7111416 未加载
评论 #7112083 未加载
评论 #7112271 未加载
tttyover 11 years ago
Can anybody explain to me how to use react.js without their &quot;guard&quot; feature. I need my app to throw the error natively and not wrapped by the framework.<p>Thanks (<a href="http://stackoverflow.com/questions/21040538/how-to-disable-the-guard-feature-in-facebook-react-when-working-with-pure-java" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;21040538&#x2F;how-to-disable-t...</a>)
评论 #7112236 未加载
rurounijonesover 11 years ago
God I am sick of the passive-agressive &quot;Finally, we have something GOOD! for X&quot; titles that disparage everything that already exists for X.<p>I saw a reddit article yesterday about &quot;Finally a way of doing X that doesn&#x27;t suck&quot; despite there already being libraries to do X.<p>This casual dismissal and disparaging of existing work is the kind of thing that causes people to give up on stuff (WhytheLuckyStiff for example)<p>It also causes me to be instantly antagonistic towards said new library &#x2F; feature. It raises the bar that I expect them ot reach. &quot;Oh? You are the ONLY good way to do something? Prove it&quot;
评论 #7113224 未加载
评论 #7114758 未加载
ocfxover 11 years ago
I don&#x27;t want to write a bunch of markup next to my javascript.
评论 #7111252 未加载
评论 #7111327 未加载
评论 #7111318 未加载
评论 #7111267 未加载
TeeWEEover 11 years ago
I still don&#x27;t get it that you would like to write in an inferior language such as js on the server side. Cm&#x27;on its broken by design. There are a lot of better alternatives.<p>The only reason to use .js on the serverside is that you don&#x27;t know better.
评论 #7114341 未加载