react-tutorial

Code from the React tutorial.

  • Owner: reactjs/react-tutorial
  • Platform:
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Deploy

React Tutorial

This is the React comment box example from the React tutorial.

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

npm install
node server.js

Python

pip install -r requirements.txt
python server.py

Ruby

ruby server.rb

PHP

php server.php

Go

go run server.go

Perl

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.,

PORT=3001 node server.js

Main metrics

Overview
Name With Ownerreactjs/react-tutorial
Primary LanguageJavaScript
Program languageCSS (Language Count: 8)
Platform
License:Other
所有者活动
Created At2014-06-30 04:42:12
Pushed At2018-06-25 20:58:25
Last Commit At2016-10-03 11:06:17
Release Count0
用户参与
Stargazers Count3.3k
Watchers Count161
Fork Count2.1k
Commits Count164
Has Issues Enabled
Issues Count47
Issue Open Count3
Pull Requests Count53
Pull Requests Open Count3
Pull Requests Close Count64
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private