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
相關文章
相關標籤/搜索