Skip to content

Commit 80ac8bd

Browse files
authored
Merge pull request #14 from ashtonsix/patch-2
Update 0006-static-lifecycle-methods.md (another spelling mistake)
2 parents b86429c + 33536d0 commit 80ac8bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0006-static-lifecycle-methods.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ Write a blog post (or a series of posts) announcing the new lifecycle hooks and
426426

427427
## Can `shouldComponentUpdate` remain an instance method?
428428

429-
Anectdotally, it seems far less common for this lifecycle hook to be used in ways that are unsafe for async. The overwhelming common usagee of it seems to be returning a boolean value based on the comparison of current to next props.
429+
Anectdotally, it seems far less common for this lifecycle hook to be used in ways that are unsafe for async. The overwhelming common usage of it seems to be returning a boolean value based on the comparison of current to next props.
430430

431431
On the one hand, this means the method could be easily codemodded to a static method, but it would be equally easy to write a custom ESLint rule to warn about `this` references to anything other than `this.props` inside of `shouldComponentUpdate`.
432432

0 commit comments

Comments
 (0)