Reactjs Post Button displays and replaces Records when Clicked while Comment and Reply button does not.

The Code below works very well by displaying records post, comments and their corresponding replies from an array via
Reactjs.

Now I have task of replacing the content of displayed records (Post,comment and reply) when their corresponding Post button,
Comment button and Reply Button is Clicked respectively with New Array record as retrieved from Axios API Call.
Here is the new array records from Axios API Calls.