Skip to content

Commit 69ffe99

Browse files
Comma-fix and clarity
Attempting to improve clarity and grammar slightly, while inserting a needed comma in the second sentence.
1 parent 9bb68c1 commit 69ffe99

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)