javascript - 为什么会有一个
问题描述
I am new to react and am running a simple application (following tutorial at https://reactjs.org/tutorial/tutorial.html and modifying code for my own project).
I see a
<noscript>
You need to enable JavaScript to run this app.
</noscript>
in my HTML, not sure if that is breaking something or why it is there. Any help is appreciated, I can give code samples if necessary but I have no idea where the noscript is coming from
解决方案
这是因为 React 是一个 Javascript 库并且根据w3schools noscript 标签定义
<noscript>
如果脚本不受支持或在用户的浏览器中被禁用,则将显示元素内的内容。该元素可用于
<head>
和<body>
。在
<head>
元素内部使用时:<noscript>
必须仅包含<link>
、<style>
和<meta>
元素。
推荐阅读
- reactjs - 如何将reducer状态值恢复为initialState默认值
- javascript - 允许在一天中的特定时间进行 Firebase 身份验证
- java -
找不到“org.springframework.security.oauth2.client.registration.ClientRegistrationRepository”类型的 bean - amazon-web-services - 如何通过 cloudformation 更新我现有的 lambda(不是由 cloudformation 创建的)。通过 cloudformation 建立管道
- database - 数据库设计:具有多个项目单元的库存(批发和零售)
- groovy - 在 Mule 4 中调用 groovy 方法
- javascript - 如何在 Vue 3 中使用 Vue.util.extend?
- python - 图中的交点数
- python - 两个变量同时赋值
- android - 为什么 Flutter App 不能在中国香港运行?