Write A React Switch Case Component
Written by Eddie ZhangatDecember 24, 2024
eureka moment
{condition && <Component/>}
.Examples from this Website


I have some thoughts about typescript as well, but we discuss that another time :)
Is There a Better Way?

For the sake of shadcn/ui - I have no idea how many methods that the React instance has in last several years 😅
