A small Vite + React app used for local experimentation and performance benchmarks against the Base UI source in this repo.
pnpm devpnpm build
pnpm serveThis app supports a profiling build that aliases react-dom/client to react-dom/profiling.
This enables React Performance Tracks in Chrome Developer Tools profiler.
pnpm build:profile
pnpm serveReact can annotate the browser Performance panel with scheduling, commit, and component timing tracks in development and profiling builds. To use it:
- Install the React DevTools browser extension.
- Use the profiling build above (or
pnpm -C playground/vite-app dev) and open the app in a Chromium-based browser. - Open DevTools > Performance, start a recording, then interact with the app.
- Look for the React tracks in the timeline.
Reference: https://react.dev/reference/dev-tools/react-performance-tracks
The playground is deployed alongside the main docs.
pnpm docs:build in the repo root builds the playground and copies the output to the Next.js export directory.
The playground is then available under /vite-playground.