30天入坑React ---------------day13 Repeating Elements(React.Children.map())

    使用React.Children.map()函数   const App = (props) => { return ( <ul> {a.map(i => { return <li key={i}>{i}</li> })} </ul> ) } 使用下方写法,效果与上放写法效果相同,写法简单 const App = (props
相关文章
相关标签/搜索