DEV Community

Discussion on: Opinionated React - Use Status Enums Instead of Booleans

Collapse
 
mxldevs profile image
MxL Devs

I actually tried using constants. NOT_STARTED, LOADING, etc. But enums was still better because of auto-complete and working with interfaces. Taking an enum type as the status is just more descriptive than an int, whether it's written as a constant or otherwise lol