Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

map function react not appearing

// use the return function in REACT.JS

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

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