https://github.com/imsobear/rax-theme-demo
https://github.com/imsobear/rax-theme-demo
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/imsobear/rax-theme-demo
- Owner: imsobear
- Created: 2020-12-02T03:15:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-02T03:16:30.000Z (over 4 years ago)
- Last Synced: 2025-01-22T20:51:30.647Z (5 months ago)
- Language: TypeScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rax-materials-basic-app
核心代码:
- 封装一个 theme 的 npm 包:[code](./src/components/Theme/index.tsx)
- 项目包装一个 ThemeProvider:[code](./src/app.tsx)
- 其他地方通过 `useTheme` 读取 theme:[code](./src/pages/Home/index.tsx)## Getting Started
### `npm run start`
Runs the app in development mode.
Open [http://localhost:3333](http://localhost:3333) to view it in the browser.
The page will reload if you make edits.
### `npm run build`
Builds the app for production to the `build` folder.