react-uploader
Advanced tools
Comparing version 2.2.0 to 2.2.1
{ | ||
"name": "react-uploader", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"author": "Upload <hello@upload.io> (https://upload.io)", | ||
@@ -5,0 +5,0 @@ "description": "React File Upload UI Widget — Lightweight & supports: drag and drop, multiple uploads, image cropping, customization & more 🚀 Comes with Cloud Storage 🌐", |
import { useCallback, useState } from "react"; | ||
/** | ||
* Unlike 'useRef', 'useElementRef' will trigger a rerender when the reference is updated. | ||
*/ | ||
export function useElementRef(): [HTMLElement | undefined, (e: HTMLElement | null) => void] { | ||
@@ -4,0 +7,0 @@ const [element, setElement] = useState<HTMLElement | undefined>(undefined); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
112828
30
271
0