Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Komponent.propTypes = {
  2. a: PropTypes.string,
  3. b: PropTypes.string,
  4. c: PropTypes.string,
  5. children: PropTypes.node.isRequired,
  6. }
  7.  
  8. export default class Komponent extends Component {
  9. render() {
  10. const { a, b, c, children, ...rest } = this.props;
  11. return <div a={a} b={b} c={c}>{component}</div>;
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement