Created
December 9, 2020 19:23
-
-
Save skovy/05f308298b997fe46ba1e3968aaa6a2d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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