Utilities
React Kit provides a set of utility functions for common tasks: booleans, CSS variables, dates, numbers, progress state, strings, and URLs. Import what you need from the main package and use them in your application logic.
Available utilities
| Utility | Description |
|---|---|
| Boolean Utils | Boolean parsing (e.g. string to boolean) |
| Css Utils | CSS variable helpers |
| Date Util | Date formatting and parsing |
| Number Utils | Number parsing |
| Progress State Utils | Progress/loading state helpers |
| String Utils | String helpers (e.g. blank/empty check) |
| Url Utils | URL building and parsing |
Usage
Import utilities from the main package:
import {
parseBoolean,
getCssVariable,
formatToAppDate,
parseNumber,
initializeState,
markSuccess,
isBlankOrEmpty,
isEncoded,
} from '@js-smart/react-kit';
Next steps
Use the sidebar to open the documentation for each utility. For installation, see Installation.