the-road-to-learn-react / use-custom-element

Custom hook to bridge Custom Elements (Web Components) to React.
https://www.robinwieruch.de
MIT License
91 stars 7 forks source link

support React 17 and React 18 #12

Open JochenDiekenbrock opened 2 years ago

JochenDiekenbrock commented 2 years ago

npm install complains about invalid peer dependencies, if React 17 or 18 is used:

npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.6" from use-custom-element@1.0.5 npm ERR! node_modules/use-custom-element npm ERR! use-custom-element@"1.0.5" from the root project

use-custom-element seems to work fine with React 17/18 so I changed the peer/dev dependency accordingly.