reactjs - Is it possible to create a react app that runs when Javascript is disabled in browser? - Stack Overflow

I am developing a reactjs site and I want to make that site running even when the javascript is disable

I am developing a reactjs site and I want to make that site running even when the javascript is disabled in browsers. Is it possible? how to develop a react site that runs on both conditions (Enabled and disabled of Javascript) for ex: fb, StackOverflow are running even javascript is disabled how it happens?

I am developing a reactjs site and I want to make that site running even when the javascript is disabled in browsers. Is it possible? how to develop a react site that runs on both conditions (Enabled and disabled of Javascript) for ex: fb, StackOverflow are running even javascript is disabled how it happens?

Share Improve this question edited Oct 30, 2021 at 11:25 Ahmet Emre Kilinc 6,97319 gold badges36 silver badges47 bronze badges asked Jan 13, 2020 at 6:54 developersjpdevelopersjp 611 silver badge2 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 5

React is a JavaScript framework for the front-end. Which means it executes in the browser. If you disable JavaScript in the browser, React doesn't work anymore. Just in the same way if you delete Photoshop from your puter, you can't open .psd files anymore.

If you really must support browsers without JavaScript (which most people don't), you need to build your app to work with plain old HTML based navigation (think links, forms etc).

It's possible to use React (for people with JS enabled) and a fallback for those without, this approach is called Progressive Enhancement. Might be useful to you: https://softwareengineering.stackexchange./questions/25969/should-i-bother-to-develop-for-javascript-disabled

First thing, React is a javascript library so it depends on Javascript. But you can use server side rendering like Next.js and render the content on server side. But still user cannot use any react feature in browser.

It's good to render the initial content on screen.

Stackoverflow renders the initial content on server and sends the initial rendered content to the browser.

It's also good for SEO.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744110386a4558924.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信