❌ Avoid multiple state variables to track status.
@_georgemoller118K followers
152,470 views
8 Comments
Comments from the original post on X (Twitter)

@statuscast
Help your IT team cut through 'Are you down?' clutter with StatusCast’s Audience Specific Status Pages. Tailor your status page to each user's role and needs for effective incident communication.
1,003 likes

@roushou_
Even better to use a union string
10 likes

@fullstackizzy
George, I definitely need to try your implementation. Because this can't be life. I apologize for my code below🤦♂️:
4 likes

@marceloterreiro
Holy crap don’t do this. Why enums if you can you a string literal lol
4 likes

@AlexandruCorut
Nice, but what’s the error.message?
2 likes

@pavl_ro
If it is only possible to have one of the states at a time, then it is a way to go 👌 It's also much easier to work with a single state than with all those boolean logic conditions mixed into the component.
1 like

@aless_133
It's not enum
1 like

@dikaizm
It only records status, how do you save the value of error message?
