jsx

blog

Why not to use `&&` in JSX ?

Using `&&` instead of good old ternary operator in JSX is not actually a very clever idea. It might result in unexpected behavior in your application and even a crash if it's react native.