How to display data coming from mongodb to reactjs after clicking the button?
问题 I am making react project using express.js, mongodb, react.js, and node.js. and trying to fetch data from backend api which is running on port 5000. When I check the api using postman , it is working. And the data is showing in the browser's console. Also, when I press Get button as given in the code below, it doesn't work on the browser. But I'm able to see the array data in the browser's console. <Button onClick={()=><li>{employeeItem}</li>}>Get</Button> Here is my full code: import React,