mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 16:16:02 +00:00
refactor(dropzone): extract DropzoneInner and unify state management with zustand (#165)
Simplified Dropzone implementation by extracting inner logic to a new component, `DropzoneInner`. Replaced local dropzone state logic with centralized state management using zustand. Adjusted API exports and props accordingly for consistency and maintainability.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { useRef } from "react";
|
||||
|
||||
export function useRenderCount() {
|
||||
const count = useRef(0);
|
||||
count.current++;
|
||||
return count.current;
|
||||
}
|
||||
Reference in New Issue
Block a user