[readme] Clean up isMounted section in react readme

When I added this section in f2dc5043a I didn't do a very good job of
following the style used in other parts of this repo. This commit
remedies that.
This commit is contained in:
Joe Lencioni
2015-12-22 22:28:09 -08:00
parent eea8efe551
commit 055aa14518

View File

@@ -337,7 +337,9 @@
## `isMounted`
[`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.
- Do not use `isMounted`.
> Why? [`isMounted` is an anti-pattern][anti-pattern], is not available when using ES6 classes, and is on its way to being officially deprecated.
[anti-pattern]: https://facebook.github.io/react/blog/2015/12/16/ismounted-antipattern.html