Some useful react components.
- Portal (README.mdx): Strong enough
React.createPortalreplacement. Make mostReact.createPortaluse case easier. - Popover (README.mdx): Powerful and highly customizable popover component, can adapt to most use case.
- Modal (README.mdx): A simple modal component. Provide react hook
useModal.
- useAsync (README.mdx): Hooks for loading data and handling asynchronous operations. Includes
useAsyncfor automatic data loading anduseAsyncFnFactoryfor manual control. - useEffectReducer (README.mdx): Inspired by Elm's TEA, this hook allows reducers to return both state and effects. Provides lifecycle management, automatic cancellation, and race-safe async operations.
- DocumentElement (README.mdx):
⚠️ DEPRECATED - Provides a declarative way to specifydocument.documentElementattributes in a single-page app. Please use react-helmet-async instead.
- https://react-components.c4605.com/
- or read
README.mdxinpackages/; - or execute
pnpm install && pnpm storybookto run a storybook server.
pnpm test
pnpm test:watch
cp .envrc.example .envrc- Edit
.envrc - Install direnv
direnv allow