After the release of React V18 on 29th March, we upgraded our library to be React v18 compatible, but now the library is no more compatible to be used under React V17 or React v16.
It gives the below error during consumption:
Module not found: Error: Can't resolve 'react-dom/client' in '.../node_modules/library/dist...'
What will be the right approach to create a forward and backward compatible React package?