Code from the React tutorial with live reloading added