JSPM

@simonkov/use-axios

1.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q38114F
  • License MIT

A custom React hook that provides a state-driven interface for Axios requests.

Package Exports

  • @simonkov/use-axios

Readme

useAxios

A custom React hook that provides a state-driven interface for Axios requests.

Last Release Badge GitHub License Badge Contributions Welcomed Badge Sponsor Hint Badge

Introduction

It manages loading, success, and error states automatically, enabling seamless integration of asynchronous API calls into components.

The hook simplifies data fetching by exposing a clean API to trigger requests, track request state, and access response data or errors without manually handling state transitions.

Install

pnpm
pnpm i @simonkov/use-axios
npm
npm i @simonkov/use-axios
yarn
yarn add @simonkov/use-axios

Or just use your package manager of choice.

Roadmap

  1. Improve docs: I don't know if somebody every will use it. Currently, it's just ment for myself.
  2. Add new features: Will probably never be removed from the roadmap.

License

The MIT License (MIT) - Please have a look at the LICENSE file for more details.

Contributing

Contributions are always welcome and greatly appreciated. Whether you want to report a bug, suggest a new feature, or improve the documentation, your input helps make the project better for everyone.

Feel free to submit a pull request, issue or feature request.

Issues and Feature Requests

Reporting an issue or creating a feature request is made by creating a new issue on this repository.

You can create a new issue or feature request here.

Pull Requests

GitHub offers a solid guideline for contributing to open source projects through pull requests, covering key practices. These best practices provide a reliable starting point for making effective contributions.

You can find the guidelines here.

Code Of Conduct

We are committed to keeping a welcoming, inclusive, and respectful community for everyone. To help us achieve this, we kindly ask that you adhere to our Code of Conduct.

All trademarks and registered trademarks mentioned are property of their respective owners and are used for identification purposes only. Use of these names does not imply endorsement or affiliation.

This project is a trademark of Simon Kovtyk. The License does not grant rights to use the trademark without permission.

© 2025 — present by Maintainers & Simon Kovtyk