Skip to content

Commit

Permalink
Merge pull request reactjs#13 from ashtonsix/patch-1
Browse files Browse the repository at this point in the history
Update 0006-static-lifecycle-methods.md (spelling mistake)
  • Loading branch information
gaearon committed Jan 20, 2018
2 parents 03cd206 + ea9bb40 commit b86429c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/0006-static-lifecycle-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ class ExampleComponent extends React.Component {

The purpose of this pattern is to memoize computed values based on `props` and/or `state`.

Typically such values are stored in `state`, but in some cases the values require mutation and as such may not seem suited for state (although they could technically still be stored there). An example of this would be an external helper class that calculates and memoizes values interally.
Typically such values are stored in `state`, but in some cases the values require mutation and as such may not seem suited for state (although they could technically still be stored there). An example of this would be an external helper class that calculates and memoizes values internally.

In other cases the value may be derived from `props` _and_ `state`.

Expand Down

0 comments on commit b86429c

Please sign in to comment.