samdenty / console-feed

Captures console.log's into a React Component 🔥
https://stackblitz.com/~/github.com/samdenty/console-feed
MIT License
670 stars 109 forks source link

add support react 18 #114

Closed meded90 closed 1 year ago

achirita commented 2 years ago

I'm using console-feed with React 18,2 and it seems to be working fine, you just have to use --legacy-peer-deps when installing the dependency.

It might just be a case of adding 18.x to the react peer dependencies.

"peerDependencies": {
    "react": "^15.x || ^16.x || ^17.x || ^18.x"
  },
meded90 commented 1 year ago

It would be convenient if added to the component https://stackoverflow.com/a/30454133