A shim for react-dom that provides a single API that will work whether the user is on react-dom@17 or react-dom@18, as well as webpack/vite config necessary to make that work.
react-dom
react-dom@17
react-dom@18