Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyComponent extends React.Component {
- render() {
- const {location, todos, users} = this.props;
- //
- // ... do things with your variables!
- //
- return (
- <MyChild {...{location, todos, user}} />
- // equivalent to:
- // <MyChild location={location} todos={todos} user={user} />
- );
- }
- }
Add Comment
Please, Sign In to add comment