Skip to main content

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

UtilityDescription
Boolean UtilsBoolean parsing (e.g. string to boolean)
Css UtilsCSS variable helpers
Date UtilDate formatting and parsing
Number UtilsNumber parsing
Progress State UtilsProgress/loading state helpers
String UtilsString helpers (e.g. blank/empty check)
Url UtilsURL 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.