@commercelayer/react-hooks-components
v5.0.16
Published
Commerce Layer React Hooks
Readme
Commerce Layer React Hooks Components
A collection of React hooks for fetching and mutating Commerce Layer resources, leveraging Commerce Layer API.
Built on SWR over @commercelayer/core-components, the hooks give you caching, request deduplication and loading states, so you can build your own UI without reaching for the components in @commercelayer/react-components.
Installation
npm install @commercelayer/react-hooks-componentsRequires React 19 or later as a peer dependency.
Documentation
Full reference, with the complete list of hooks and examples, lives in the Hooks package page of the interactive documentation.
Need help?
- Join Commerce Layer's Discord community.
- Open a new Q&A discussion
- Ping us on Bluesky, X (formerly Twitter), or LinkedIn.
- Is there a bug? Create an issue on this repository.
License
This repository is published under the MIT license.
