[TOC] ## 基础列表组件 ``` render() { const list=[1,2,3,5]; let Map = list.map((t)=><Word name={t+"asd"}></Word>); return ( <div className="App"> {Map} </div> ); } ``` ## 在 JSX 中嵌入 map() ``` function NumberList(props) { const numbers = props.numbers; return ( <ul> {numbers.map((number) => <ListItem key={number.toString()} value={number} /> )} </ul> ); } ```