Facebook's React.js as a component