easy5 pts · first answer countsreactconditional-rendering
A stray 0 on the page
When the cart is empty, a "0" shows on the page. Why?
{cart.length && <CartBadge count={cart.length} />}Discussion 0
Join free to post in the discussion.
Related questions
- Why React lists need keysFrontend Developer
- Input that ignores typingFrontend Developer
- Changing a prop inside a childFrontend Developer
- What JSX turns intoFrontend Developer
- A component written in lowercaseFrontend Developer
- Adding a CSS class in JSXFrontend Developer
- Returning two elementsFrontend Developer
- Handler that runs on every renderFrontend Developer