React demo app for @sankyu/react-circle-flags.
- Named flag imports for tree-shaking friendly usage
- Dynamic flag rendering with runtime country codes
- Build metadata panel
- Reusable browse/grid UI from shared example modules
- Node.js
20.19+(recommended by current Vite/Rolldown toolchain) - npm
10+
# from repo root
npm install
npm run dev# development
npm run dev
# type-check + production build
npm run build
# preview built app
npm run preview- App entry:
examples/example-react/src/App.tsx - Shared module entry:
examples/example-react/src/libs/shared/index.ts - Flag grid UI:
examples/example-react/src/components/FlagGrid.tsx - Build info UI:
examples/example-react/src/components/BuildInfoCard.tsx
- This example is configured for StackBlitz auto-install.
- If install is interrupted, run
npm installonce, thennpm run dev.