Search
Star
1.4k
Feedback
Setup for Free
KP-C
Kevin Powell - Community
•
3y ago
•
1 reply
Dev_zxc
can you have an if else statement inside this ```style={{ }}```
i was wondering if you can do an if else statement inside
style={{ }}
style={{ }}
, like do this static color in when this happens and do this color when this happens etc
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
style={{ }}
style={{ }}
Similar Threads
using Regex in an if else statement
KP-C
Kevin Powell - Community / front-end
4y ago
why else statement runs even if the if statement being true?
KP-C
Kevin Powell - Community / back-end
3y ago
if else statement for buttons when clicked?
KP-C
Kevin Powell - Community / front-end
4y ago
Can you think of a good use case for an css-only if/else like this?
KP-C
Kevin Powell - Community / front-end
2y ago