starting to implement http://facebook.github.io/react/docs/thinking-in-react.html