DEV Community

Discussion on: Simplify condition rendering in React.js

Collapse
 
lonlilokli profile image
Lonli-Lokli

Nice, but you are missing Default case when no other matches

Collapse
 
miketalbot profile image
Mike Talbot ⭐ • Edited

Nope, I just called it CaseElse (my project has a ton of things called DefaultXYZ so it doesn't scan well).