const CommentList = ({ comments }) => { 函數把comments前后大括號去掉有問題
在CommentList .js文件中, 把
const CommentList = ({ comments }) => {??
函數comments前后大括號去掉有問題,編譯出來說 comments.map 并不是個函數
在CommentList .js文件中, 把
const CommentList = ({ comments }) => {??
函數comments前后大括號去掉有問題,編譯出來說 comments.map 并不是個函數
2021-07-30
舉報
2021-08-02
是個析構寫法,相當于 comments = props.comments;