Skip to content

nodegui/devtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
    }
  }
});