Skip to content

lucasbecker/widget-vite-react-template

Repository files navigation

Widget Template - React + TypeScript + Vite

This template provides a minimal setup to get a widget with React working in Vite with HMR and some ESLint rules.

To improve the widget from this template as a web component to use in specifc spaces from your layout try install and use @r2wc/react-to-web-component.

Setup

npm install

# Development
npm run dev

# Usage
npm run build
npm run preview

Add the built script to the html index of your application to add the widget from this template, like in example.html file.

References