Util

This package provides various utility classes, functions & hooks and is used by most other Presto packages.


Installation

Install the packages from npm

yarn add @prestojs/util

Usage

  • The useAsync hook is a useful general purpose hook for dealing with any async function.

  • Paginator is a utility class for paginating data and can be used standalone or with the @prestojs/rest class Endpoint