A Vite plugin and React HOC for automatically or manually tagging JSX/TSX components with custom data attributes. Version 1.1.8, actively maintained, ships TypeScript types. Peer dependency on Vite ^5.0.0. Key differentiators: supports both a build-time plugin for automatic tagging and runtime HOC for manual tagging, with runtime override support via tagOptions prop. Lightweight and focused on debugging/QA use cases.
npm install superdev-taggerVerified import paths — ran on the pinned version, not inferred.
Demonstrates using the tagComponent HOC with custom options and runtime override.
Upgrade Vite to version 5 or above.
Use the tagComponent HOC for manual tagging outside JSX.
Consider using React.memo on wrapped components or apply only during development.
Run 'npm install superdev-tagger' and ensure it appears in dependencies.
Use import { tagComponent } from 'superdev-tagger' instead of import tagComponent from 'superdev-tagger'.