cloudinary-react
Installation
SKILL.md
Cloudinary React Skill
When to Use
- When a user is building or debugging Cloudinary in a React app (Vite, Create React App, Parcel, etc.).
- When implementing or fixing: Upload Widget, AdvancedImage/AdvancedVideo, transformations, overlays, image galleries, video player, or signed/unsigned uploads.
- When the user sees errors like "createUploadWidget is not a function", wrong imports from
@cloudinary/url-gen, upload preset issues, or video player DOM errors.
Quick Start
Most common operations:
- Setup: Create config file with
cldinstance (see Project setup section) - Display image:
const img = cld.image('id').resize(fill().width(800)); <AdvancedImage cldImg={img} /> - Upload Widget: Script in index.html + poll for
createUploadWidgetin useEffect - Image overlay: Use
source(text(...))orsource(image(...))- see Import reference table for exact paths - Signed uploads: See references/signed-uploads.md
- Troubleshooting: See references/troubleshooting.md