This is my code:
class App extends Component {
constructor() {
super();
this.state = {
data: [
{
name: 'Jal Irani',
imgURL: './man.jpg',
hobbyList: ['Front-end Web Development', 'Back-end Web Development', 'Eating Free Food'],
},
],
};
}
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welcome to Profiler</h1>
</header>
<p className="App-intro">//access the json data here</p>
</div>
);
}
}
I want to access the json element in
<p className="App-intro">//access the json data here.
I have tried to use react map function without success.
Is there any help. AM new in react js.