Our great sponsors
-
react-vite-crxjs-chrome-boilerplate
Boilerplate for creating a Google Chrome Extension with React + Vitejs + CRXJS.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
react
A declarative, efficient, and flexible JavaScript library for building user interfaces. (by sbs2001)
mk668a/react-vite-crxjs-chrome-boilerplate
If you want to use svg with React components, install vite-plugin-svgr.
import React, { useState } from "react"; import ReactDOM from "react-dom/client"; import logo from "./assets/logo.svg"; function Popup() { const [count, setCount] = useState(0); return (
); } ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( );Hello Vite + React!
setCount((count) => count + 1)}> count is: {count}
Edit
App.tsx
and save to test HMR updates.Learn React {" | "} Vite Docs