samdenty / console-feed

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

Update README.md #113

Closed pixelass closed 1 year ago

pixelass commented 1 year ago

The example for hooks did not use the HookedConsole in the cleanup function. It would probably still work since it's the same object but it creates a typescript error.

I just noticed this and thought it might be wise to provide a typesafe example.

codesandbox[bot] commented 1 year ago

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

stackblitz-staging[bot] commented 1 year ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

samdenty commented 1 year ago

thanks!