Skip to content

Commit 055aa14

Browse files
committed
[readme] Clean up isMounted section in react readme
When I added this section in f2dc504 I didn't do a very good job of following the style used in other parts of this repo. This commit remedies that.
1 parent eea8efe commit 055aa14

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

react/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,9 @@
337337
338338
## `isMounted`
339339
340-
[`isMounted` is an anti-pattern][anti-pattern], is not available when using ES6 classes, and is on its way to being officially deprecated. Its use should be avoided.
340+
- Do not use `isMounted`.
341+
342+
> Why? [`isMounted` is an anti-pattern][anti-pattern], is not available when using ES6 classes, and is on its way to being officially deprecated.
341343
342344
[anti-pattern]: https://facebook.github.io/react/blog/2015/12/16/ismounted-antipattern.html
343345

0 commit comments

Comments
 (0)