React SDK Installation
Get started with the easyCDN React SDK by installing the package and setting up your first upload component.
Prerequisites
Before installing the easyCDN React SDK, make sure you have:
- React 19+- The SDK requires React 19 or later
Installation
Install the React SDK using npm:
Using npm
bash
npm install @easycdn/react
Peer Dependencies
The SDK has the following peer dependencies that should already be installed in your React project:
react@^19
react-dom@^19
If you need to install them:
bash
npm install react@^19 react-dom@^19
TypeScript Support
The SDK is written in TypeScript and includes full type definitions. No additional @types packages are needed.
Verification
To verify the installation was successful, try importing the main component:
typescript
import { Dropzone } from '@easycdn/react'
console.log('easyCDN React SDK installed successfully!')