Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/capricorncd/mini-react
fiber, task scheduler, useState, useEffect
https://github.com/capricorncd/mini-react
jsx react vite
Last synced: 26 days ago
JSON representation
fiber, task scheduler, useState, useEffect
- Host: GitHub
- URL: https://github.com/capricorncd/mini-react
- Owner: capricorncd
- Created: 2024-01-26T02:18:54.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-28T13:16:31.000Z (12 months ago)
- Last Synced: 2024-04-14T11:41:18.147Z (9 months ago)
- Topics: jsx, react, vite
- Language: JavaScript
- Homepage: https://capricorncd.github.io/mini-react/dist
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mini-react
```bash
# Install the dependencies
npm i
# Development Server
npm run dev
```### Code style
```bash
npx eslint . --fix --ext .js,.jsx
```### vite
https://vitejs.dev/
### 自定义vite jsx解析方法名
在`.jsx`文件头添加`/**@jsx CustomReact.createElementOrOtherName */`
告诉`vite`使用`CustomReact.createElementOrOtherName`来代替默认的`React.createElement`解析jsx文件/语法
```jsx
/**@jsx CustomReact.createElementOrOtherName */
```### learn
https://learn.cuixueshe.com/