Propagation and defaults
The answer to the exercise in Propagation and defaults.
- Play sits inside the card, so the click travelled up and logged
card:as well.event.stopPropagation()stops that journey. return falsedoes nothing in React.event.preventDefault()stops the browser following the link, so the cards stay. The click still bubbles, which is whycard: The Bearappears afteropen: The Bear.