Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import AnotherComponent from './AnotherComponent';
- export default ({ children, ...rest }) =>
- <AnotherComponent extraProp="anExtraProp" { ...rest }>
- { children }
- </AnotherComponent>;
Add Comment
Please, Sign In to add comment