Skip to content

Instantly share code, notes, and snippets.

@skovy
Created December 9, 2020 19:23
Show Gist options
  • Save skovy/05f308298b997fe46ba1e3968aaa6a2d to your computer and use it in GitHub Desktop.
Save skovy/05f308298b997fe46ba1e3968aaa6a2d to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from "react-dom";
function DevTools() {
return <div>You now have your own DevTools!</div>;
}
export function install() {
const devToolsRoot = document.createElement("div");
document.body.appendChild(devToolsRoot);
ReactDOM.render(<DevTools />, devToolsRoot);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment