原文: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 解決辦法有兩種如下: :寫一個函數,return一個數組 : ES 箭頭函數寫法 就可以解決這個個問題 ...

2018-05-31 10:39 0 916 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM