In react js , I am fetching data from multiple api and I need to fetch them one by one and also call some functions one by one so I used react state with if statements to ma