- Forums
- react
- React - Example Using Switch Case Break Condition In React Jsx
This Page Contains information about React - Example Using Switch Case Break Condition In React Jsx By dd in category react with 0 Replies. [5121], Last Updated: Fri May 12, 2023
dd
Fri May 12, 2023
0 Comments
52 Visits
This is the switch operator you can use in your react jsx code:
{(()=>{
switch (file.downloaded) {
case 1:
return <IonText color="medium">Downloaded</IonText>
break;
default:
break;
}
})
}