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
Copyright © 2025 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.