UNPKG

react-fantastic

Version:

Fantastic react component library

28 lines 911 B
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; const propTypes = { className: PropTypes.string, children: PropTypes.node }; const defaultProps = {}; class TableBody extends Component { render() { const { className, children } = this.props; const classes = classNames(0, className); return React.createElement( 'tbody', Object.assign({}, objectWithoutProperties(this.props, Object.keys(propTypes).filter(e => e !== 'children')), { className: classes } ), children ); } } TableBody.propTypes = propTypes; TableBody.defaultProps = defaultProps; export default TableBody;