react 小技巧

1.JSX 循環變量的時候,每一個節點須要有key,html 2.箭頭函數沒有'{', 直接返回,如:函數 // e => { return ('<div></div>'); } // 能夠這樣寫: e => ('<div></div>');   轉載於:https://www.cnblogs.com/liuyinlei/p/11571683.htmlpost
相關文章
相關標籤/搜索