Display all console output in real html
npm i console-board --save-dev
import { injectRender } from 'console-board';
And Inject somewhere it at your root component
{injectRender()}
Then the component will be used in development and the console
will be patched
Or
You could use import { LogList } from 'console-board'
as you want
LogList
the main component which does the patch and displaying all together
toggleByTouch
defaultfalse
: Instead of showing the 😂 button, tap three times in a row to display the log pannelshowOnInit
defaultfalse
: show log pannel on startshowInput
defaultfalse
: show an input that eval the code (type clear to clear the console board)persistentKey
default@@console
: [TODO] set the key to store the output, set it tonull
to disable persistence
patchConsole
proxy the console
and call your custom function before every console call
Return a proxied console
. Used internally in LogList.
injectRender
Helper function to render the LogList only on development
Sometimes the developer console is not available to use, and logging becoming tedious. And some logging options provide plain text output which is not joyful to work with.
- When the page is in a webview where no remote debugging is available
- When developing React Native apps and turning on remote debugging is too slow
- When you are tired of the default console output
- Proxy
console
on Chrome and Safari - Maintain states
- React component
- Accurate output for complex structure
- Interactive
- Persistence
- React Native component
- Plain JS component