A published React 19 component library — reusable components, hooks, and utilities, distributed as tree-shakeable ESM with bundled type definitions.
pnpm add @rtorcato/common-react
# react & react-dom 19 are peer dependencies
pnpm add react react-domimport { MyComponent } from '@rtorcato/common-react/components/MyComponent'
export function App() {
return <MyComponent />
}The package ships granular subpath exports so bundlers only pull what you import:
| Import | Contents |
|---|---|
@rtorcato/common-react |
Root barrel |
@rtorcato/common-react/components/MyComponent |
Individual component |
@rtorcato/common-react/hooks |
Shared hooks |
@rtorcato/common-react/lib/* |
Utility modules (e.g. lib/utils) |
Requires Node ≥ 22 and pnpm (see .nvmrc / packageManager).
pnpm install
pnpm verify # typecheck + biome check + tests (the local gate)
pnpm test # vitest (watch)
pnpm build-prod # esbuild bundle + .d.ts emitTooling (TypeScript, Biome, Vitest, Commitlint, Husky, semantic-release, CI)
is shared from @rtorcato/js-tooling —
run npx @rtorcato/js-tooling doctor to check for drift.
main is protected; work happens on branches and merges via PR:
git switch -c feat/short-name origin/main
# …conventional commits…
git push -u origin feat/short-name
gh pr create --fill
gh pr merge --auto --squash --delete-branch # ships when CI is greenCommit messages follow Conventional Commits
— semantic-release reads them to version, tag, and publish to npm on merge to main.
ISC © Richard Torcato