Javascript Ternary Operator Not Working Properly In React Stack Overflow

Javascript Ternary Operator Not Working Properly In React Stack Overflow