Browse Source

Merge pull request #1601 from gaearon/apply-component-and-mixin-spec-deterministically

Apply component and mixins specs deterministically
main
Lee Byron 11 years ago
parent
commit
fd1040b663
  1. 2
      docs/05-reusable-components.md

2
docs/05-reusable-components.md

@ -190,5 +190,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