How to use the @nodegui/react-nodegui.Renderer.render function in @nodegui/react-nodegui

To help you get started, we’ve selected a few @nodegui/react-nodegui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nodegui / react-nodegui-starter / src / index.tsx View on Github external
import { Renderer } from "@nodegui/react-nodegui";
import React from "react";
import App from "./app";

process.title = "My NodeGui App";
Renderer.render();
// This is for hot reloading (this will be stripped off in production by webpack)
if (module.hot) {
  module.hot.accept(["./app"], function() {
    Renderer.forceUpdate();
  });
}
github nodegui / react-nodegui / examples / weather-app-widget / src / index.tsx View on Github external
temp_max: number;
  };
  name: string;
};

const defaultState = {
  weather: [],
  main: {
    temp: 0,
    temp_min: 0,
    temp_max: 0
  },
  name: "NA"
};

Renderer.render(, {
  onRender: () => {
    console.log("Yo");
  },
  enableDevtools: true
});

@nodegui/react-nodegui

React Native for building cross platform desktop applications

MIT
Latest version published 2 years ago

Package Health Score

51 / 100
Full package analysis

Similar packages