react.js example snippets