useToggleuseToggle+useEventRefuseSafeEffectuseEventControluseDebounceuseThrottleuseClickOutsideuseTabsuseDateuseDatesuseImageuseCaptureuseIntersectionObserver
react react-hook ironman30

useImage

A hook to preview image after uploading.


LINKS

鐵人賽連結


const { image, handleUpload, handleRemove, inputRef } = useImage()

const { images, handleUpload, handleRemove, handleClearAll, inputRef } =
  useImages()