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.

Using React, Redux and SSR to acommodate users without JavaScript

55 pointsby danielskoglyalmost 5 years ago

10 comments

strogonoffalmost 5 years ago
For relatively simple use cases of server-side rendering with React, I think it’s worth knowing that you can render <i>any</i> component to static HTML with just one function call (and it works in Node environment). Another function call (this time browser-only) can be used to make the markup rendered interactive with no unnecessary DOM mutations.<p>React library makes these functions available from ReactDOMServer[0]. I like this API, it opens various possibilities and is easy to build on top of.<p>Of course, Daniel goes further to create a universal approach to authoring an app that not only supports SSR but works without JS entirely, which is pretty cool!<p>[0] <a href="https:&#x2F;&#x2F;reactjs.org&#x2F;docs&#x2F;react-dom-server.html#rendertostring" rel="nofollow">https:&#x2F;&#x2F;reactjs.org&#x2F;docs&#x2F;react-dom-server.html#rendertostrin...</a>
danielskoglyalmost 5 years ago
How to accommodate users without JavaScript without changing the development flow in modern web app development is something I&#x27;ve been thinking about for a while, and I&#x27;m happy to finally share this writeup and proof of concept.<p>If you just want to check out the demo, you can do that here: <a href="https:&#x2F;&#x2F;todo-react-redux-noscript.herokuapp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;todo-react-redux-noscript.herokuapp.com&#x2F;</a>
评论 #23444902 未加载
评论 #23447884 未加载
throwaway_pdp09almost 5 years ago
A big thank you to those who are starting to support people like me who are js-allergic for varied reasons of security, efficiency, privacy, and general control over our own machines.
评论 #23454261 未加载
评论 #23447626 未加载
IshKebabalmost 5 years ago
I&#x27;ve been wondering about this recently too. I really want something that does almost everything server-side, like the old handlebars-style templates, but allows a modern component based page structure.<p>I guess React SSR is probably the closest thing to that but (without having used it) I&#x27;m guessing it is full of caveats given that React wasn&#x27;t originally designed to work that way.<p>I wish there was something that was, and also was written in a language other than Typescript.
评论 #23447662 未加载
评论 #23446203 未加载
评论 #23447785 未加载
评论 #23446213 未加载
kumarvvralmost 5 years ago
If we are going to use SSR, why not use asp.net core mvc like frameworks. Its orders of magnitude easier to reason about and highly productive during development.<p>I used to be a fan for react, but a month ago I started a project in asp.net core mvc, and am hooked. Of course I have a lot of experience in c#, so that helps i guess.
评论 #23447900 未加载
评论 #23447407 未加载
SimeVidasalmost 5 years ago
If a website that is rendered in the browser using a JS framework adds SSR, does that mean that the client-side JS code will be delayed (not render-blocking) so that the first render can happen? How does that work?
评论 #23447014 未加载
hopplaalmost 5 years ago
I am curious on how SSR impact security. JS enabled web clients have many security mechanisms, but are there any relevant ones that are missing from the server side engine?
评论 #23446774 未加载
darepublicalmost 5 years ago
Not easy to advocate for no js support at the js shops
评论 #23446785 未加载
评论 #23447455 未加载
ab8almost 5 years ago
How does this compare with Microsoft&#x27;s Blazor?
评论 #23445715 未加载
评论 #23445043 未加载
评论 #23445041 未加载
baron816almost 5 years ago
What reasons would you disable JS other than to block ads and tracking?<p>If it’s just those things, why would the developers want to accommodate those people? That would result in lost revenue.
评论 #23446241 未加载
评论 #23445699 未加载
评论 #23445505 未加载
评论 #23445664 未加载
评论 #23446224 未加载