React for the Console
yarn add react-log
npm install react-log --save
react-log exports a single React Component called Log. Each child will not be rendered on the DOM, but will produce an analog representation on the console.
No proprietary syntax is needed for child HTML elements. react-log handles the parsing and rendering of native React-DOM elements for you.
Let's see it in action!
import Log from 'react-log';<Log><h1=>React<span=>log</span></h1><a=''=>For more info</a></Log>
Run the example yourself
On the root of the project:
cd examples/npm installnpm start
The server should be listening now on
Tested and working on Chrome 51 and Firefox 45. Does not work on Safari or IE as far I've seen. Yet.
MIT © Diego Muracciole