Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 658 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 658 Bytes

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

  1. Launch devtools.
    react-devtools
  1. 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);
    }
  }
});