const [files1, setFiles1] = useState([{user:1, name:1},{user:2, name:2}]);
const [files2, setFiles2] = useState([{user:3, name:3},{user:4, name:4}]);
이렇게 다중 배열이 2개 있는데
이걸 합치는 방법이 있나요?
[{user:1, name:1},{user:2, name:2},{user:3, name:3},{user:4, name:4}]
이렇게 합치고 싶어요
알려주세요~