Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nodegui/devtools

React NodeGui's devtools support module.
https://github.com/nodegui/devtools

devtools native nodegui nodejs react

Last synced: about 1 month ago
JSON representation

React NodeGui's devtools support module.

Awesome Lists containing this project

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

1. Launch devtools.

```sh
react-devtools
```

2. In your app code:

```js
import { Renderer } from "@nodegui/react-nodegui";
import React from "react";
import App from "./app";

process.title = "My NodeGui App";

Renderer.render(, {
onInit: (reconciler: any) => {
if (process.env.NODE_ENV === "development") {
require("@nodegui/devtools").connectReactDevtools(reconciler);
}
}
});
```