@samitouri / QOS-React-2 / commits / 21d91e6f5f

Mention Flux in “communicate between components”

Dan Abramov committed Apr 7, 2015 at 19:44 UTC 21d91e6f5fcea0fecc2e9414fffcfd18505e5d37
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 call `setState()` when you receive an event.
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. [Flux](https://facebook.github.io/flux/) pattern is one of the possible ways to arrange this.