how to assign classname in reactJS code example Example: conditional classname prop react <span className={todo.completed ? "true" : ""}>