Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/nodegui/devtools
- Owner: nodegui
- Created: 2019-12-30T02:23:10.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-30T03:10:04.000Z (almost 5 years ago)
- Last Synced: 2024-08-03T16:09:34.204Z (4 months ago)
- Topics: devtools, native, nodegui, nodejs, react
- Language: JavaScript
- Size: 2.93 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-nodegui - @nodegui/devtools - React NodeGui's devtools support module. (Plugins / Samples and Experiments)
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);
}
}
});
```