Skip to content

Instantly share code, notes, and snippets.

@nesbtesh
Last active November 20, 2016 22:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nesbtesh/b4a3f69bd13c46f6a7692a5bc5e4840e to your computer and use it in GitHub Desktop.
Save nesbtesh/b4a3f69bd13c46f6a7692a5bc5e4840e to your computer and use it in GitHub Desktop.
Dumb Components in React
const DumbComponent = (props) => {
return (<div />);
}
@timbuckley
Copy link

I would change the argument to just (props), since the destructuring you do, while common and useful, is done to get particular props out of the props arg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment