web-client-ui
web-client-ui copied to clipboard
Update to React v18
https://react.dev/blog/2022/03/08/react-18-upgrade-guide
Some improvements we can expect:
- Better typings in generally, specifically from
useCallback- Used to be typed as any in v17, it's more strict in v18.
- Automatic batching: https://react.dev/blog/2022/03/08/react-18-upgrade-guide#automatic-batching
More useful info including a codemod to help w/ types that may break w/ the upgrade https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56210
react-beautiful-dnd may or may not work w/ React 18. They added it to the peer deps at least, but I vaguely recall some other issues w/ react 18 that people were having. If it doesn't work, we would either need to use a forked version (since it is no longer updated) or switch it out. We use @dnd-kit/core for the column grouping sidebar
Moved to DH-19098