Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 541 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 541 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>;
};