Commit ec56f29
Update reference assignment in readme (#352)
as per react docs (https://reactjs.org/docs/refs-and-the-dom.html#legacy-api-string-refs) this.refs is deprecated. Assigning it with function is a recommended approach1 parent 6a00545 commit ec56f29
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | | - | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
95 | | - | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
0 commit comments