1.1.0 • Published 4 years ago
@egjiri/react-kit v1.1.0
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-kit
Install through yarn:
yarn add @egjiri/react-kit
Usage 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: 1. Run the test suite and linters 1. Build the TypeScript codebase into a build folder with JavaScript and TypeScript type definition files. 1. Publish the build folder to the NPM Registry.