React Tutorial Server

by mmwtsn


React Tutorial



This is the React comment box example from the React tutorial. I've removed the base examples and re-written the example while following along with the tutorial.

Quick start

Assuming you already have Node.js installed:

npm install
node server.js

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