DriveLoader Logo
DriveLoaderv1.2.0
Docs/Custom React Hooks

Custom React Hooks

Programmatic state control with useDriveImage, useDriveVideo, and useDriveFolder.

hooks.tsx
1import { useDriveVideo } from '@driveloader/react';
2
3const { videoUrl, loading, error, metadata, thumbnailUrl } = useDriveVideo(driveUrl);

Usage Notes

Exposes full resolution lifecycle, errors, and metadata.