@frontity/hooks
API reference of `@frontity/hooks` package
This package is a collection of React hooks that have proven to be pretty useful for a Frontity project.

Table of Contents

Installation

Add the @frontity/hooks package to your project:
1
npm i @frontity/hooks
Copied!

How to use

In order to use it, you just have to import the hook you want to use in your theme from @frontity/hooks and place it wherever needed. For example, if we want to use the useInView hook:
1
import useInView from "@frontity/hooks/use-in-view";
Copied!

Hooks

These are the hooks available from the package @frontity/hooks
Last modified 8mo ago