It is always a head-aching problem to show console messages in webpages which are shown on mobile devices. With this module, a simple simulated console panel appears in the webpages and it doesn't have any side-effects on the rest of your code.
// import the console tool
import pageConsole from 'page-console';
// initialize the console tool
pageConsole.init();
Then you can enjoy it!
MIT