JSFiddle - React, Tailwind, and code Playground
by aparadise
JavaScript
class TodoApp extends React.Component {
constructor(props) {
super(props)
kids: [{
id: 1,
name: 'andre'
},
{
id: 2,
name: 'jam'
},
{
id: 3,
name: 'jam'
}
]
}
this.heathens = this.state.kids.map((kid, key) =>
<span key={kid.id}>{kid.name}</span>
)
}
{this.heathens}