On first click it provide null but on second click it produce result on api fetch through axios in react – Reactjs
I am having a search button in my code which takes gatewayId as input from user. Displaydata function invokes when user click on search button.Then, it make visibility of another div true through setToggle state and invoke loadDetails function. It…