Learning ReactJS

Frederic G. MARAND 16f42c90cb Listing 21: adding comments - optimistic updating. %!s(int64=9) %!d(string=hai) anos
public 16f42c90cb Listing 21: adding comments - optimistic updating. %!s(int64=9) %!d(string=hai) anos
.editorconfig 6f1481419b First step: copy files from official repo, configure ESLint. %!s(int64=9) %!d(string=hai) anos
.eslintrc.js a7b6e49cb6 Listing 13: fetching data from API. %!s(int64=9) %!d(string=hai) anos
.gitignore 2e72dee5ba Listing 20: adding comments - submit to server. %!s(int64=9) %!d(string=hai) anos
LICENSE 6f1481419b First step: copy files from official repo, configure ESLint. %!s(int64=9) %!d(string=hai) anos
README.md 6f1481419b First step: copy files from official repo, configure ESLint. %!s(int64=9) %!d(string=hai) anos
comments.json 6f1481419b First step: copy files from official repo, configure ESLint. %!s(int64=9) %!d(string=hai) anos
package.json 6f1481419b First step: copy files from official repo, configure ESLint. %!s(int64=9) %!d(string=hai) anos
server.go c5878c602d Listing 15: adding comments - create form. %!s(int64=9) %!d(string=hai) anos

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: