Generic components for react.js