Skip to content

Commit

Permalink
Comma-fix and clarity
Browse files Browse the repository at this point in the history
Attempting to improve clarity and grammar slightly, while inserting a needed comma in the second sentence.
  • Loading branch information
shoesandsocks committed Mar 28, 2017
1 parent 9bb68c1 commit 69ffe99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-string-refs.md
@@ -1,6 +1,6 @@
# Prevent using string references (no-string-refs)

Currently, two ways are supported by React to refer to components. The first one, providing a string identifier is considered legacy in the official documentation. Referring to components by setting a property on the `this` object in the reference callback is preferred.
Currently, two ways are supported by React to refer to components. The first way, providing a string identifier, is now considered legacy in the official documentation. The documentation now prefers a second method -- referring to components by setting a property on the `this` object in the reference callback.

## Rule Details

Expand Down

0 comments on commit 69ffe99

Please sign in to comment.