https://github.com/simon-he95/unplugin-react-v-bind
给 react 上 v-bind 语法糖
https://github.com/simon-he95/unplugin-react-v-bind
react react-v-bind unplugin
Last synced: 2 months ago
JSON representation
给 react 上 v-bind 语法糖
- Host: GitHub
- URL: https://github.com/simon-he95/unplugin-react-v-bind
- Owner: Simon-He95
- License: mit
- Created: 2024-08-02T12:42:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-05T03:02:51.000Z (over 1 year ago)
- Last Synced: 2025-03-28T17:27:17.517Z (about 1 year ago)
- Topics: react, react-v-bind, unplugin
- Language: TypeScript
- Homepage: https://unplugin-jsx-v-bind-play.netlify.app/
- Size: 146 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: license
Awesome Lists containing this project
README
## unplugin-react-v-bind
在 React 中支持 `v-bind` 语法
## Install
```bash
npm i unplugin-react-v-bind -D
```
## Usage
```ts
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import VitePluginReactVBind from 'unplugin-react-v-bind/vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
VitePluginReactVBind(),
react(),
],
})
```
## :coffee:
[buy me a cup of coffee](https://github.com/Simon-He95/sponsor)
## License
[MIT](./license)
## Sponsors