Authors:
Cameron Johns, Cille Schliebitz, Anita Gu
Changed on:
3 Feb 2025
This lesson focuses on adding interactivity to the map pins. Building on the previous styling enhancements, we'll use React's
`useState`
`useState`
`useState`
In the previous lesson, we added some styling elements to the pins. Now, let’s make these pins interactive!
Managing state is one of the things React does really well. We'll make use of the React
`useState`
Watch the video below for steps on how to apply an action to a pin (or pins) once it has been clicked.
This video explains how to make a component interactive