React JSX Iterating a List/Array

PHOTO EMBED

Thu May 28 2020 06:27:13 GMT+0000 (Coordinated Universal Time)

Saved by @pdngl #react.js

this.state = {
	zombies:[
    {
    	name: 'Zombie'
    },{
    	name: 'Zombie'
    } {
    	name: 'Zombie'
    } {
    	name: 'Zombie'
    } {
    	name: 'Zombie'
    }
    ]
}

render() {
	return (
    	<div>
        {
        	this.state.zombies.map(zombie => <h1>{zombie.name}</h1>)
        }
        
        </div>
    )
}
content_copyCOPY