Commit daa5ca2
committed
deps: update peerDeps to support React 18 without warnings (#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 6d6dcd1 commit daa5ca2
3 files changed
+67
-75
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
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 | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
| 75 | + | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
0 commit comments