How to use the console-feed/lib/Hook function in console-feed

To help you get started, we’ve selected a few console-feed examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github codesandbox / codesandbox-client / packages / app / src / sandbox / console / index.js View on Github external
export default function setupConsole() {
  Hook(window.console, log => {
    dispatch({
      type: 'console',
      log,
    });
  });
}

console-feed

A React component that displays console logs from the current page, an iframe or transported across a server

MIT
Latest version published 8 months ago

Package Health Score

68 / 100
Full package analysis