Type of the default value for 'songs' prop must be a function

  eslint常會出現這樣的錯誤提示,控制檯打印:Type of the default value for 'songs' prop must be a function    解決辦法有兩種如下: 1:寫一個函數,return一個數組 2: ES6 箭頭函數寫法 就可以解決這個問題
相關文章
相關標籤/搜索