Rendering a list of shows
The answer to the exercise in Rendering a list of shows.
- The callback used curly brackets, so its body ran and gave back nothing. Round brackets after the arrow return the element instead.
- Each card also needs a
key, andshow.idis the one value that belongs to the show and never changes.