joehua87 / vite-plugin-react

React Fast Refresh plugin for Vite

Home Page:https://vite-plugin-react.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vite-plugin-react

Provides React Fast Refresh support for Vite.

Note: Vite requires using @pika/react and @pika/react-dom which are ESM mirrors of the official React packages. This plugin automatically injects the correct alias for you so you can just import React from 'react' as usual.

This plugin is included by default in the create-vite-app React template.

// vite.config.js
module.exports = {
  jsx: 'react',
  plugins: [require('vite-plugin-react')]
}

About

React Fast Refresh plugin for Vite

https://vite-plugin-react.now.sh

License:MIT License


Languages

Language:TypeScript 100.0%