dran n drop
-
빠르게 시작하는 드래그 앤 드롭React.js & Next.js 2023. 3. 26. 20:15
prerequisites typescript interface react.js useRef useState Props inline-styling conditional render 전체 코드 import React, { ChangeEvent, useCallback, useEffect, useRef, useState } from 'react'; interface IFileTypes { id: number; object: File; } const basicInputStyle = { width: '100%', height: '200px', border: '2px solid', borderRadius: '10px', cursor: 'pointer', transition: '0.12s ease-in', displa..