Another option is to use map() in our JSX to avoid the for-of loop. const DogList = () => { const dogBreeds = ['corgi', 'shih tzu', 'pug']; ...
確定! 回上一頁