validateDOMNesting(…): cannot appear as a child of

前端 未结 4 1218
离开以前
离开以前 2021-01-18 07:29

I\'m trying to get this work:

Orders:

render () {
    const orders = this.state.orders.map((o         


        
4条回答
  •  终归单人心
    2021-01-18 07:59

    Or more elegant:

    render () {
        return (
            
                {this.state.orders.map((order, index) => (
                	return ();
                )}
                
    ); }

提交回复
热议问题