Skip to content

Commit 2fab34a

Browse files
authored
Merge pull request #33 from adam-s/patch-1
Update 16.state-hoisting.md
2 parents e7c0edf + 4dc7363 commit 2fab34a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patterns/16.state-hoisting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Stateless functions don’t hold state (as the name implies).
33

44

5-
vents are changes in state. Their data needs to be passed to stateful container components parents.
5+
Events are changes in state. Their data needs to be passed to stateful container components parents.
66
This is called “state hoisting”. It’s accomplished by passing a callback from a container component to a child component.
77
```javascript
88
class NameContainer extends React.Component {

0 commit comments

Comments
 (0)