Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
can you have an if else statement inside this ```style={{ }}``` - Kevin Powell - Community
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,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
using Regex in an if else statement
KP-C
Kevin Powell - Community / front-end
4y 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
svelte logic (if else) - can you write this in the js? (potential very dumb question)
KP-C
Kevin Powell - Community / front-end
2y ago