score:5

Accepted answer
constructor(props){
    super(props);
    this.travelRawdata = [{type:15}];
}
render(){
    return (
        <ul>
           {this.travelRawdata.map(element => <li>{element.type}</li>)}
    </ul>
    );
}

score:0

this.travelRawdata.map((item)=> { return (<li>{item.type}</li> })

Related Query

More Query from same tag