Learning ReactJS

Frederic G. MARAND 257f06693e Listing 3: composing components: composing CommentBox of CommentList and CommentForm. 9 år sedan
public 257f06693e Listing 3: composing components: composing CommentBox of CommentList and CommentForm. 9 år sedan
.editorconfig 6f1481419b First step: copy files from official repo, configure ESLint. 9 år sedan
.eslintrc.js c173d1e1ec Listing 1: first component, CommentBox. 9 år sedan
.gitignore 6f1481419b First step: copy files from official repo, configure ESLint. 9 år sedan
LICENSE 6f1481419b First step: copy files from official repo, configure ESLint. 9 år sedan
README.md 6f1481419b First step: copy files from official repo, configure ESLint. 9 år sedan
comments.json 6f1481419b First step: copy files from official repo, configure ESLint. 9 år sedan
package.json 6f1481419b First step: copy files from official repo, configure ESLint. 9 år sedan
server.go 6f1481419b First step: copy files from official repo, configure ESLint. 9 år sedan

README.md

react-intro : Learning ReactJS

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

Installing

go run server.go

And visit http://vm:3000/ assuming you host is called vm. 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

Parts taken from: