Skip to content

Commit 9ef9e10

Browse files
authored
corrected property name
The property name in es5 example should be "someData" to make sense of equivalent es6 example.
1 parent 19c32d2 commit 9ef9e10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5224,7 +5224,7 @@
52245224
2. Spread operator: Helps in passing props down into a component
52255225
```javascript
52265226
// in es 5
5227-
<SomeComponent myData={this.props.someData} dispatch={this.props.dispatch} />
5227+
<SomeComponent someData={this.props.someData} dispatch={this.props.dispatch} />
52285228

52295229
// in es6
52305230
<SomeComponent {...this.props} />

0 commit comments

Comments
 (0)