react 小技巧

1.JSX 循环变量的时候,每一个节点须要有key,html 2.箭头函数没有'{', 直接返回,如:函数 // e => { return ('<div></div>'); } // 能够这样写: e => ('<div></div>');   转载于:https://www.cnblogs.com/liuyinlei/p/11571683.htmlpost
相关文章
相关标签/搜索