
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@cloudinary/react
Advanced tools
The Cloudinary React SDK allows you to quickly and easily integrate your application with Cloudinary. Effortlessly optimize and transform your cloud's assets.
This Readme provides basic installation and usage information. For the complete documentation, see the React SDK Guide.
| SDK Version | React 16 | React 17 | React 18 |
|---|---|---|---|
| 1.0.0 & up | V | V | V |
npm i @cloudinary/url-gen @cloudinary/react --save
Or
yarn add @cloudinary/url-gen @cloudinary/react --save
import React from 'react';
import { AdvancedImage } from '@cloudinary/react'
import { Cloudinary } from '@cloudinary/url-gen';
import { AdvancedImage } from '@cloudinary/react'
import { Cloudinary } from '@cloudinary/url-gen';
const myCld = new Cloudinary({
cloud: {
cloudName: "demo",
},
});
let img = myCld.image('sample');
const App = () => {
return <AdvancedImage cldImg={img}/>
};
- Use <AdvancedImage> to generate image tags
- Use <AdvancedVideo> to generate video tags
import { CloudinaryImage } from "@cloudinary/url-gen";
import {
lazyload,
responsive,
accessibility,
placeholder
} from "@cloudinary/react";
cloudinaryImage = new CloudinaryImage("sample", { cloudName: "demo" });
const App = () => {
return <AdvancedImage cldImg={img} plugins={[lazyload(),responsive(), accessibility(), placeholder()]} />;
};
You can omit any plugin, but the order from above should remain.
This SDK does not provide file upload functionality, however there are several methods of uploading from the client side.
npm run test)If you run into an issue or have a question, you can either:
Cloudinary is a powerful media API for websites and mobile apps alike, Cloudinary enables developers to efficiently manage, transform, optimize, and deliver images and videos through multiple CDNs. Ultimately, viewers enjoy responsive and personalized visual-media experiences—irrespective of the viewing device.
Released under the MIT license.
FAQs
Cloudinary React SDK
The npm package @cloudinary/react receives a total of 30,652 weekly downloads. As such, @cloudinary/react popularity was classified as popular.
We found that @cloudinary/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.