How to delete all old elements in functional component

前端 未结 0 802
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-01 01:43

I need to delete all old Fragments after fetching:

export default function SearchSong() {
    const [topSongs, setTopSongs] = useState([]);
    let inputEl =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题