if else in api response function reactjs code example Example: inline if in html component Condition ? Block_For_True : Block_For_False