[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)
# React Tutorial
This is the React comment box example from [the React tutorial](http://facebook.github.io/react/docs/tutorial.html).
## To use
There are several simple server implementations included. They all serve static files from `public/` and handle requests to `/api/comments` to fetch or add data. Start a server with one of the following:
### Node
```sh
npm install
node server.js
```
### Python
```sh
pip install -r requirements.txt
python server.py
```
### Ruby
```sh
ruby server.rb
```
### PHP
```sh
php server.php
```
### Go
```sh
go run server.go
```
### Perl
```sh
cpan Mojolicious
perl server.pl
```
And visit <http://localhost:3000/>. Try opening multiple tabs!
## Changing the port
You can change the port number by setting the `$PORT` environment variable before invoking any of the scripts above, e.g.,
```sh
PORT=3001 node server.js
```
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
react-tutorial-master.rar (17个子文件)
react-tutorial-master
server.py 1KB
package.json 723B
server.go 3KB
server.rb 2KB
server.js 3KB
server.php 2KB
app.json 441B
LICENSE 585B
comments.json 223B
requirements.txt 14B
.gitignore 26B
public
css
base.css 833B
index.html 1011B
scripts
example.js 4KB
README.md 959B
.editorconfig 254B
server.pl 1KB
共 17 条
- 1
资源评论
- gjeunney2017-08-14很好很强大哦
编程者联盟
- 粉丝: 11
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功