How does MDN Intercept `console.log`? | DevLog 003The browser's console output can't be read. MDN's interactive examples override the browser's console.log, formats the arguments for the webpage, and then calls the original console.log. I created a component in React that accomplishes the same thing.
js/editor-libs/console-utils.js. It has some rules…