Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6213

Using OR operator in React js conditional rendering

$
0
0

I want to conditionally render a button based on two conditions.Am not really sure if am doing it the right way.

But i get this error This condition will always return 'true' since the types '"started"' and '"cancelled"' have no overlap.ts(2367) where the red underline is.

Am using React js with typescriptenter image description here


Viewing all articles
Browse latest Browse all 6213

Trending Articles