Repository navigation
1.0.2
Summary of Changes and Configurations
Hook Creation:
A React hook called useHttpRequest was developed, designed to simplify API calls in a straightforward and efficient manner.
package.json Configuration:
A package.json file was created, containing basic package information such as name, version, description, dependencies, and necessary scripts.
Relevant keywords were defined to improve the package's visibility on npm, including terms like "react", "hook", "api", "axios", etc.
Version Management:
npm version patch was used to automatically increment the package version in package.json, creating a new commit and a new Git tag.
Entry Point Configuration:
The exports field in package.json was configured to allow importing both the main index.js file and the main.jsx file. This was done so that users could choose between different entry points based on their needs.
It was established that the index.js file is the main entry point, and a ./jsx subpath was added to import main.jsx.
Git and npm Deployment:
It was discussed how to push changes and new tags to the remote Git repository, as well as how to publish the new package version to npm.
Import Example:
An example was provided of how users can import the hook and the main.jsx file in their projects, using the appropriate syntax to access the defined entry points.