Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

map function react

// REACT.JS

const arr = [{name: "test"}, {name: "test1"}, {name: "test2"}]

arr.map((n, i) => {
	return <p key={i}>{ n.name }</p>
})
Source by # #
 
PREVIOUS NEXT
Tagged: #map #function #react
ADD COMMENT
Topic
Name
1+9 =