react-tutorial:React教程中的代码

时间:2021-05-10 19:45:21
【文件属性】:
文件名称:react-tutorial:React教程中的代码
文件大小:14KB
文件格式:ZIP
更新时间:2021-05-10 19:45:21
JavaScript React教程 这是中的React评论框示例。 使用 包括几个简单的服务器实现。 它们都提供来自public/静态文件,并处理对/api/comments请求以获取或添加数据。 使用以下任一启动服务器: 节点 npm install node server.js Python pip install -r requirements.txt python server.py Ruby ruby server.rb PHP php server.php 去 go run server.go Perl cpan Mojolicious perl server.pl 并访问 。 尝试打开多个标签! 更改端口 您可以在调用上述任何脚本之前,通过设置$PORT环境变量来更改端口号,例如, PORT=3001 node server.js
【文件预览】:
react-tutorial-master
----server.py(2KB)
----package.json(775B)
----server.go(3KB)
----server.rb(2KB)
----server.js(3KB)
----server.php(2KB)
----app.json(441B)
----LICENSE(585B)
----comments.json(535B)
----requirements.txt(14B)
----.gitignore(26B)
----public()
--------css()
--------index.html(946B)
--------scripts()
----README.md(959B)
----.editorconfig(254B)
----server.pl(1KB)

网友评论