score:0

Accepted answer

the render looks good to me, i think the problem is that your component is rendering without waiting for your erquest response.

what about using async/await?

like so

async componentdidmount() {
  const {data} = await axios.get("http://localhost:8080/rfx/all");
  this.setstate({ listrfx : data })
}

hope this help.


Related Query

More Query from same tag