Browse Source

Apply component and mixins specs deterministically

Fixes #1589.
main
Dan Abramov 11 years ago
parent
commit
6b97ac8811
  1. 2
      docs/05-reusable-components.md

2
docs/05-reusable-components.md

@ -187,5 +187,5 @@ React.renderComponent(
);
```
A nice feature of mixins is that if a component is using multiple mixins and several mixins define the same lifecycle method (i.e. several mixins want to do some cleanup when the component is destroyed), all of the lifecycle methods are guaranteed to be called.
A nice feature of mixins is that if a component is using multiple mixins and several mixins define the same lifecycle method (i.e. several mixins want to do some cleanup when the component is destroyed), all of the lifecycle methods are guaranteed to be called. Methods defined on mixins run in the order mixins were listed, followed by a method call on the component.

Loading…
Cancel
Save