Skip to content

Instantly share code, notes, and snippets.

@skovy
Created December 9, 2020 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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