react-console-logger

A logger is built by React.

Usage no npm install needed!

<script type="module">
  import reactConsoleLogger from 'https://cdn.skypack.dev/react-console-logger';
</script>

README

react-console-logger

Display log.

example

example

import {Logger, ConsoleLogger} from 'react-console-logger';

const myLogger = new Logger();

const root = () => (
  <div>
    <h1>react-console-logger</h1>
    <ConsoleLogger
      logger={myLogger}
    />
  </div>
);

mylogger.log('log');
mylogger.info('info');
mylogger.warn('warn');
mylogger.error('error');