38
rated 0 times
[
39]
[
1]
/ answers: 1 / hits: 16726
/ 7 Years ago, mon, march 20, 2017, 12:00:00
Heading Does anyone know how can I map a dictionary in React js ?
export class ServiceFeatures extends React.Component {
constructor(props) {
super(props)
this.state = {dict: {'awesome': ['wow','alo'], 'great': ['ano', 'alo' ]}}
}
render() {
return (
<div>
{this.state.dict.map((name, features) => (
<Services categories={features}></Services>
))}
</div>
)
}
}
More From » reactjs