Commit 1c5afd2
Make react-intl react 16 compatible (formatjs#1201)
Closes formatjs#1078
This is not a breaking change since the access of the ref is used when calling getWrappedInstance()
In order to support React 16. We need to remove the legacy way of using ref's by setting a string.
This is now marked as legacy.
```
We advise against it because string refs have some issues, are considered legacy, and are likely to be removed in one of the future releases.
Note
If you’re currently using this.refs.textInput to access refs, we recommend using either the callback pattern or the createRef API.
```
https://reactjs.org/docs/refs-and-the-dom.html#legacy-api-string-refs1 parent 4bb6e27 commit 1c5afd2
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments