Conditional rendering
Also written: conditionally render
Showing different JSX depending on a condition, such as "Sold out" for stock 0. React has no special syntax for it: you use `if`, the ternary `? :` or `&&`.
Also written: conditionally render
Showing different JSX depending on a condition, such as "Sold out" for stock 0. React has no special syntax for it: you use `if`, the ternary `? :` or `&&`.