Browse Source

Fix a typo (#8580)

main
SunHuawei 8 years ago
committed by Dan Abramov
parent
commit
30c7c808ab
  1. 2
      _posts/2016-07-13-mixins-considered-harmful.md

2
_posts/2016-07-13-mixins-considered-harmful.md

@ -440,7 +440,7 @@ Multiple components may be sharing `RowMixin` to render the header, and each of
If you see rendering logic inside a mixin, it’s time to extract a component! If you see rendering logic inside a mixin, it’s time to extract a component!
Instead of `RowMixin`, we will define a `<Row>` component. We will also replace the convention of defining a `getHeaderText()` method with the standard mechanism of top-data flow in React: passing props. Instead of `RowMixin`, we will define a `<RowHeader>` component. We will also replace the convention of defining a `getHeaderText()` method with the standard mechanism of top-data flow in React: passing props.
Finally, since neither of those components currently need lifecycle hooks or state, we can declare them as simple functions: Finally, since neither of those components currently need lifecycle hooks or state, we can declare them as simple functions:

Loading…
Cancel
Save