I have something like this
{
"title": "JSON",
"content": [
{
"item": "23",
"url":"ug.coml"
},
{
"item": "33",
"url":"tewts.com"
}
]
}
I would like to know if I can pass a string to the map line of code.
const pathstring=this.props.path; //this is equal to the string "content"
const block = skillSetData.pathstring.map ((data, index) => {
return (
<div>
<h3>{data.url}</h3>
</div>
)
})