@samitouri / QOS-React-2 / commits / 92c37ffb3d

Update 14-communicate-between-components.md

Alexander Tseung committed Dec 21, 2014 at 00:14 UTC 92c37ffb3d4f0bb842dd0fb54dbafd6fe2831c46
1 file changed +1 -1
docs/tips/14-communicate-between-components.md
+1 -1
@@ -38,4 +38,4 @@ React.render(
38
39 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.
40
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.