React.js grid component implementation