摘要: 1 三元运算符 1 const MyComponent = ({ name }) => ( 2 3 <div className="hello"> 4 5 {name ? `Hello ${name}` : 'Please sign in'} 6 7 </div> 8 9 ); 有几点需要注意。因为 阅读全文
posted @ 2020-06-18 21:36 无人问及 阅读(172) 评论(0) 推荐(0) 编辑