recharts
Version:
React charts
30 lines (23 loc) • 553 B
JavaScript
import React, { PropTypes } from 'react';
class Layer extends React.Component {
static displayName = 'Layer';
static propTypes = {
className: PropTypes.string,
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node,
]),
};
constructor(props) {
super(props);
}
render() {
const { children, className, ...others } = this.props;
return (
<g className={'recharts-layer ' + (className || '')} {...others}>
{children}
</g>
);
}
}
export default Layer;