Guest User

Untitled

a guest
Mar 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. class MyComponent extends React.Component {
  2. render() {
  3. const {location, todos, users} = this.props;
  4. //
  5. // ... do things with your variables!
  6. //
  7. return (
  8. <MyChild {...{location, todos, user}} />
  9. // equivalent to:
  10. // <MyChild location={location} todos={todos} user={user} />
  11. );
  12. }
  13. }
Add Comment
Please, Sign In to add comment