@awssam/next-helpers
v0.1.9
Published
A small collection of Next.js client-side hooks and helpers
Downloads
17
Maintainers
Readme
@awssam/next-helpers
A small collection of reusable helpers and hooks for Next.js projects. Currently, it includes:
useRouteQuery– A client-side hook for getting and setting URL search parameters in Next.js (App Router).useDimension– A hook to observe and track the dimensions of a DOM element using theResizeObserverAPI.
Note: This library is intended for Next.js 13+ using the App Router. It relies on the new
next/navigationutilities.
Table of Contents
Installation
Install the package via npm or yarn:
npm install @awssam/next-helpersOr
yarn add @awssam/next-helpersPeer Dependencies: You need React, ReactDOM, and Next.js in your project (v13 or later). Make sure they’re installed in your own
package.json.
Documentation
Contributing
- Fork the repo and clone it locally.
- Create a branch for your contribution (
feature/my-new-helper). - Commit your changes and push your branch.
- Create a Pull Request and describe your changes.
License
This project is licensed under the MIT License.
Feel free to open issues or submit PRs for new Next.js helpers that could be included here in the future. We welcome your contributions!
