Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 707 Bytes

README.md

File metadata and controls

42 lines (30 loc) · 707 Bytes

Electron starter

  • Electron JS
  • Typescript
  • ReactJs / UmiJs
  • Antd Design UI / Antd Pro
  • Tailwind CSS

Installation

use yarn for package manager if don't have

# install yarn if not exist
npm i -g yarn
# install package
yarn install

# Run development
yarn dev

Example

// access to electron
const { hello } = window.$api || {};

const Page = () => {
  // access to global react state
  const { counter } = useModel('counter');

  return <Button onClick={() => hello('ElectronJS')}>Hello </Button>;
};

Reference and Credit

https://github.com/dieharders/ai-text-server https://github.com/cba85/electron-webview https://github.com/hokein/electron-sample-apps