Skip to content

Commit

Permalink
Merge pull request #1131 from shoesandsocks/patch-1
Browse files Browse the repository at this point in the history
[docs] Comma-fix and clarity
  • Loading branch information
ljharb authored Mar 29, 2017
2 parents 9bb68c1 + 69ffe99 commit bfdd722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-string-refs.md
Original file line number Diff line number Diff line change
@@ -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 bfdd722

Please sign in to comment.