Code from the React tutorial: http://facebook.github.io/react/docs/tutorial.html