@farmfe/plugin-react
Support React Jsx
and React Refresh
for Farm.
Installationâ
- npm
- yarn
- pnpm
npm install @farmfe/plugin-react react-refresh
yarn add @farmfe/plugin-react react-refresh
pnpm add @farmfe/plugin-react react-refresh
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 */}]
}