This is the Array I'm trying to map
const arr = [
{"title" : "something",
"Text" : "something"
},
{"title" : "something",
"Text" : "something"
},
{"title" : "something",
"Text" : "something"
}
]
Tried to map it like this
{arr.map((item, index) => {
return (
<div key={index}>
<p>{item.title}</p>
<p>{item.Text}</p>
<button>
click here
</button>
</div>
)
})}
It won't work so what am i missing here?
edited*
item.textshould beitem.TextandConstshould beconst