用create-react-app启动启动纱线时,服务器的文档根目录在哪里?

尤瓦兹

yarn start使用create-react-app启动时,我想获取资源在本地PC上的位置

开发服务器的文档根目录在我的PC上哪里?

吉加·贾杰(Jigar Gajjar)

查看public / index.html。在那您将看到下面的元素。

<div id="root"></div>

然后在您的src文件夹中查找index.js文件。您将在下一行看到。

import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));

这意味着它正在生成App组件,并将动态生成的html附加到div id“ root”

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

使用Nginx和Create-React-App开发服务器并启动npm

Create-react-app:服务器(npm 启动脚本)是什么?

React Native应用程序的“纱线启动”失败,并显示“无法启动服务器”

用create-react-app facebook孵化器陪伴

babel/polyfill 在 create-react-app 中被弃用警告

用create-react-app开玩笑-意外的令牌错误

React App无法使用npm start启动服务器

React App Multi-Page 启动服务器时不显示任何数据?

React App:使用React服务器启动API服务器

启动时create-react-app“无法编译”

npm create-react-app启动错误

没有XSS问题的create-react-app服务器+节点服务器?

create-react-app MaterialUI 錯誤:無效的鉤子調用

用 python 启动 Flask 服务器

带有后端node.js服务器的create-react-app与未设置node.js服务器的create-react-app之间的区别

使用Go的网络服务器,网站的根目录在哪里映射到文件系统?

create-react-app无法启动脚本后

Create-React-App中的启动画面

从Github启动一个克隆的create-react-app

尝试启动create-react-app和安装react-dev-utils时出现NPM错误E404

通过运行npm install create-react-app创建的node_modules文件夹有什么用?

纱线启动不适用于react-app-rewired

未弹出时,create-react-app应用程序会将其babel配置存储在哪里?

Create-react-app:如何定义开发服务器的上下文路径

如何从服务器正确地提供create-react-app索引?

create-react-app的开发服务器不会自动刷新

在docker容器内部运行带有create-react-app的开发服务器

为什么我需要带有create-react-app的服务器

如何使用Create-React-App的节点服务器定义MIME类型?