Welcome to the sdk-react project! This repository contains an official React hooks SDK designed specifically for Dolivroo, a unified shipping API for Algeria. Whether youโre building a delivery app or integrating shipping features into your existing platform, sdk-react makes the process straightforward and efficient.
To get started, you need to download the sdk-react SDK. You can easily find it on our GitHub Releases page.
Before you download, ensure your environment meets these requirements:
If you want to learn more about how to use sdk-react, you can check the documentation included in the repository. It contains detailed examples and instructions to guide you through the setup.
To download the sdk-react SDK, visit this page: Download sdk-react. Follow these steps:
Once downloaded, follow the installation instructions provided in the documentation to set up the SDK in your project.
After installation, you can start using sdk-react in your React application. Hereโs a simple example:
import { useShipping } from 'sdk-react';
function App() {
const { createShipment } = useShipping();
const handleShippingRequest = async () => {
const response = await createShipment({
address: '123 Street, Algiers',
weight: '2kg',
service: 'Express'
});
console.log(response);
};
return (
<button onClick={handleShippingRequest}>
Create Shipment
</button>
);
}
Follow the instructions in the documentation for further usage examples and advanced features.
If you run into issues during installation or usage, consult the troubleshooting section in the documentation. Common issues include:
If you wish to contribute to this project, please feel free to fork the repository and submit a pull request. We welcome contributions that can help improve sdk-react.
We appreciate the efforts of everyone who has contributed to this project. Your support helps improve integration with Dolivrooโs shipping services.
Thank you for using sdk-react! If you have any questions or feedback, reach out to us through the issues section of the GitHub repository.