@farmfe/plugin-react
Support React Jsx
and React Refresh
for Farm.
Installationâ
- npm
- yarn
- pnpm
npm install @farmfe/plugin-react
yarn add @farmfe/plugin-react
pnpm add @farmfe/plugin-react
Usageâ
@farmfe/plugin-react
is a Rust plugin, you only need to configure its package name in plugins
field in farm.config.ts
.
import { UserConfig } from '@farmfe/core';
const config: UserConfig = {
plugins: ['@farmfe/plugin-react', { /** options here */}]
}