Skip to main content
deleted 53 characters in body
Source Link

if you're just trying to decide between collapse__threat-scorenumber--high collapse__threat-scorenumber--medium or '' based on the condition variable, then just make a helper function that does that

then do return <div className={"collapse__threat-score"number " + getThreatScoreClassgetNumberClass(condition)}}>{number}</div>

if you're just trying to decide between collapse__threat-score--high collapse__threat-score--medium or '' based on the condition variable, then just make a helper function that does that

then do return <div className={"collapse__threat-score " + getThreatScoreClass(condition)}}>{number}</div>

if you're just trying to decide between number--high number--medium or '' based on the condition variable, then just make a helper function that does that

then do return <div className={"number " + getNumberClass(condition)}}>{number}</div>

Source Link

if you're just trying to decide between collapse__threat-score--high collapse__threat-score--medium or '' based on the condition variable, then just make a helper function that does that

then do return <div className={"collapse__threat-score " + getThreatScoreClass(condition)}}>{number}</div>