@nodegui/devtools
v1.0.1
Published
A react nodegui devtools integrator
Downloads
12
Keywords
Readme
React NodeGui devtools
React NodeGui's devtools support module.
Installation
npm install --save-dev @nodegui/devtools
Pre-requisite
Install React devtools standalone version.
npm install -g react-devtools
Usage
- 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);
}
}
});