At Present, after posting comment data to the server, the page reloads to pull appended comments using componentDidMount.
Create a proper state update function, which triggers a re-render on comment post. Another approach would be to manually append the state after sending the get query, eliminating the need to fetch data again
At Present, after posting comment data to the server, the page reloads to pull appended comments using componentDidMount.
Create a proper state update function, which triggers a re-render on comment post. Another approach would be to manually append the state after sending the get query, eliminating the need to fetch data again