I am trying simple ternary operator in react js.
Result = action === 'success' ? Done : NotDone;
But somehow the control is always going to else, I tried console.log just before this line, it shows correct string, but when I try to match the string, the computation fails.
What could be the issue.
1