Do that
render() {
var elems = this.props.items.course_list;
console.log(elems);
return (
<div>
</div>
)
}
Result:
Try access to course_list by this:
render() {
var elems = this.props.items.course_list;
console.log(elems.course_list;);
return (
<div>
</div>
)
}
Get undefined.
Have object course_list that include array course_list, I can't access to this array
This screen for
var elems = this.props.items; console.log(elems);


;within theconsole.log()is not valid, is it a typo?elemsis alreadycourse_listin your code.course_listfromelems, it should be declared aselems = this.props.items