Skip to content

Instantly share code, notes, and snippets.

@skovy

skovy/dev_tools.tsx

Created Dec 9, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.