# React with Vite

> Clearlook in a React (or Vue, Svelte) app built with Vite.

- The tag goes in `index.html` inside `<head>`. It records route changes from any router.
- **npm:** the package isn't on npm yet; use the tag.
- **Users:** after sign-in, `setConsent('granted')` then `identify(user.id)`; `reset()` on sign-out.
- **Events:** `capture('Checkout started', { items: 3 })` at the moment it happens, not in a render.
- **Errors:** `@sentry/react` with the DSN; source maps from `vite build --sourcemap` upload in CI (`errors-sourcemaps`), and the `.map` files are not deployed publicly.
