diff --git a/README.md b/README.md index 97b1994..a24c410 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_621 TILs and counting..._ +_622 TILs and counting..._ --- @@ -430,6 +430,7 @@ _621 TILs and counting..._ - [Alter The Display Name Of A Component](react/alter-the-display-name-of-a-component.md) - [create-react-app Comes With Lodash](react/create-react-app-comes-with-lodash.md) - [Defining State In A Simple Class Component](react/defining-state-in-a-simple-class-component.md) +- [Destructure Variables As Props To A Component](react/destructure-variables-as-props-to-a-component.md) - [Dispatch Anywhere With Redux](react/dispatch-anywhere-with-redux.md) - [Force A Component To Only Have One Child](react/force-a-component-to-only-have-one-child.md) - [Inactive And Active Component Styles With Radium](react/inactive-and-active-component-styles-with-radium.md) diff --git a/react/destructure-variables-as-props-to-a-component.md b/react/destructure-variables-as-props-to-a-component.md new file mode 100644 index 0000000..df357af --- /dev/null +++ b/react/destructure-variables-as-props-to-a-component.md @@ -0,0 +1,45 @@ +# Destructure Variables As Props To A Component + +When passing down props, a redundant-feeling pattern can sometimes emerge. + +```javascript +const MyComponent = ({ handleChange, handleBlur }) => { + return ( +