This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
npm install
npm run dev
git add .
git commit -m "Message here"
git push
const categories = [
"Category1",
"Category2",
"Category3",
"Category4",
"Category5",
];
const data = [10, 20, 30, 40, 50];
<BarChart categories={categories} data={data} />;