@samitouri / QOS-React-2 / commits / d7ced68dce

Clarify that string refs are considered legacy. (#6692)

Andrew Clark committed May 25, 2016 at 23:47 UTC d7ced68dcec476e5675b95a79af29f1835295a9a
1 file changed +5 -1
docs/docs/08.1-more-about-refs.md
+5 -1
@@ -68,7 +68,11 @@ Note that when the referenced component is unmounted and whenever the ref change
68
69 ## The ref String Attribute
70
71 -React also supports using a string (instead of a callback) as a ref prop on any component, although this approach is mostly legacy at this point.
71 +> Note:
72 +>
73 +> Although string refs are not deprecated, they are considered legacy, and will likely be deprecated at some point in the future. Callback refs are preferred.
74 +
75 +React also supports using a string (instead of a callback) as a ref prop on any component.
76
77 1. Assign a `ref` attribute to anything returned from `render` such as:
78