This repository contains a step-by-step guide to setting up an NPM package specifically designed for React projects, creating a custom hook, and testing it.
You can find the tutorial here: https://dev.to/martinpersson/how-to-create-package-and-test-a-react-hook-with-npm-169k