classnames react if ternary code example Example: conditional classname prop react <span className={todo.completed ? "true" : ""}>