Skip to content

Instantly share code, notes, and snippets.

@tbranyen
Created January 29, 2019 22:55
Show Gist options
  • Save tbranyen/b5cf2537fa5e1c1268e44c99699dea73 to your computer and use it in GitHub Desktop.
Save tbranyen/b5cf2537fa5e1c1268e44c99699dea73 to your computer and use it in GitHub Desktop.
A Console component for React
const Console = props => {
for (let method in console) {
if (method in props) {
console[method](props[method]);
}
}
return <></>;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment