A simple React client runtime.
- sealed entry for single page application
- optional file-system based router (WIP)
npm i @epiijs/client --save-dev
(root)
├─ src
│ ├─ .epiijs
│ │ └─ (auto-generated)
│ ├─ (others)
│ ├─ index.tsx
│ └─ index.less
└─ start.ts
import { startClient } from '@epiijs/client';
const appConfig = {
name: 'your-client',
path: {
root: __dirname // or getDirNameByImportMeta
}
};
startClient(config);
buildClient(config);