Commit 9d68e79
authored
deps: update peerDeps to support React 18 without warnings (agilgur5#89)
- seems to work without any component modifications needed on React 18
- React 18 was mostly _deprecations_ and new features per the upgrade guide: https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html
- React 18 has concurrent mode opt-in, which is technically breaking, but doesn't seem to effect this library (fortunately)
- ensure tests pass with React 18
- update devDeps to React 18, react-dom 18, @types/react 18
- update devDeps to RTL 13 which supports React 18
- see previous commit for the migration from Enzyme to RTL since Enzyme never had official support for React 17, let alone React 18
- update example to use `createRoot` instead of `ReactDOM.render`
- this is one of the opt-ins to React 18 mode, and doesn't seem to change anything about the example (just no warnings anymore)1 parent 36ed95a commit 9d68e79
3 files changed
+75
-83
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
| 68 | + | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
| 99 | + | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
0 commit comments