1.0.1 • Published 4 years ago
react-task-use-format v1.0.1
react-task-use-formatter
React hook for data manipulation and formatting
Install:
with npm:
npm i react-task-use-format
or with yarn:
yarn add react-task-use-format
Usage:
import { useFormat } from 'react-task-use-format'
/* Somewhere in component */
const {
formatted, // Formatted data
setFormatted, // Set the formatted data
loadCount, // Amount of loaded data
loadMore, // Load specific amount of data
filter, // Filter data
sortBy, // Sort data
search, // Search for data
} = useFormat(data, defaultLoadCount?)