Hi I'm new in ReactJS Framework. I have problem regarding how to get the value of sec1 object and sec2 object to the API Response. and how to render return the value to my html page.
I have here my constructor codes and my response data.
constructor(){
super();
this.state = {
sec1: [],
sec2: []
}
}
componentDidMount() {
axios.get('/api/community').then(response => {
this.setState({
sec1: response.data,
sec2: response.data
})
})
}
My Console Log

sec1: response.data[0].sec1andsec2: response.data[0].sec2