React NodeGui's devtools support module.
npm install --save-dev @nodegui/devtools
Install React devtools standalone version.
npm install -g react-devtools
- Launch devtools.
react-devtools
- In your app code:
import { Renderer } from "@nodegui/react-nodegui";
import React from "react";
import App from "./app";
process.title = "My NodeGui App";
Renderer.render(<App />, {
onInit: (reconciler: any) => {
if (process.env.NODE_ENV === "development") {
require("@nodegui/devtools").connectReactDevtools(reconciler);
}
}
});