import React from 'react';
import cx from 'classnames';

class Row extends React.Component {
  render() {
    let C = this.props.node;
    return (
      <C className={cx('row', this.props.className)}
        {...this.props}>
        {this.props.children}
      </C>
    );
  }
}

Row.propTypes = {
  node: React.PropTypes.node.isRequired
};

Row.defaultProps = {node: 'div'};

export default Row;

import React from 'react';
import cx from 'classnames';

const Row = ({ children, className, node: Node = 'div' }) =>
  <Node className={cx('row', className)}>{ children }</Node>;

Row.propTypes = {
  node: React.PropTypes.node
};

export default Row;

Fix Row warning on React15 (#101)