Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Komponent.propTypes = {
- a: PropTypes.string,
- b: PropTypes.string,
- c: PropTypes.string,
- children: PropTypes.node.isRequired,
- }
- export default class Komponent extends Component {
- render() {
- const { a, b, c, children, ...rest } = this.props;
- return <div a={a} b={b} c={c}>{component}</div>;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement