별도의 구성 요소에 가져오기 기능 삽입 다음 구성 요소에서 petchImages 기능을 꺼내 새 구성 요소 안에 넣으려고 한다. import React, { useState, useEffect } from 'react'; import axios from 'axios'; import UnsplashImage from './UnsplashImage'; const Collage = () => { const [images, setImages] = useState([]); const [loaded, setIsLoaded] = useState(false); const fetchImages = (count = 10) => { const apiRoot = 'https://api.unsplash.com'; const a..