@egjiri/react-kit
v1.1.0
Published
React utility function and components
Downloads
26
Readme
A collection of useful React utility functions and components that can be used across projects. Written in TypeScript.
Installation
Install through npm:
npm install @egjiri/react-kitInstall through yarn:
yarn add @egjiri/react-kitUsage Examples
import { buildClassName } from '@egjiri/react-kit/utils'
const className = 'card';
const isActive = true;
const isHidden = false;
buildClassName('static', className, isActive && 'active', isHidden && 'hidden');
// => "static card active"Development
- Install dependencies:
yarn - Run tests
yarn test(tests automatically re-run when TypeScript src files change) - Start Coding!
Release
This project is released through GitHub Actions workflows that:
- Run the test suite and linters
- Build the TypeScript codebase into a build folder with JavaScript and TypeScript type definition files.
- Publish the build folder to the NPM Registry.
