原文: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