Map function in react (err: TypeError: e.map is not a function)
问题 I want to render items from props, I can do it with initial state, but not with response from server. My render function : const { data } = this.props; return ( <div > {data.map((item, index) => <div key={index} className="row"> <span data = { data } className="number col-4 col-md-8">{item._id}</span> <span data = { data } className="date col-4 col-md-2">{item.date}</span> <span data = { data } className="tag col-4 col-md-2">{item.tag}</span> <div className="col-md-12 "> {item.text} </div> <