Skip to content

Commit bfdd722

Browse files
authored
Merge pull request #1131 from shoesandsocks/patch-1
[docs] Comma-fix and clarity
2 parents 9bb68c1 + 69ffe99 commit bfdd722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/no-string-refs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Prevent using string references (no-string-refs)
22

3-
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.
3+
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.
44

55
## Rule Details
66

0 commit comments

Comments
 (0)