Skip to content

Commit 92c37ff

Browse files
committed
Update 14-communicate-between-components.md
1 parent f7166d0 commit 92c37ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tips/14-communicate-between-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ React.render(
3838

3939
Notice the use of `bind(this, arg1, arg2, ...)`: we're simply passing more arguments to `handleClick`. This is not a new React concept; it's just JavaScript.
4040

41-
For communication between two components that don't have a parent-child relationship, you can set up your own global event system. Subscribe to events in `componentDidMount()`, unsubscribe in `componentWillUnmount()`, and when you receive an event, call `setState()`.
41+
For communication between two components that don't have a parent-child relationship, you can set up your own global event system. Subscribe to events in `componentDidMount()`, unsubscribe in `componentWillUnmount()`, and call `setState()` when you receive an event.

0 commit comments

Comments
 (0)