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