Relative Content

Tag Archive for javascriptcssreactjsreact-hooks

Trigger handle click on only one item at a time in a map

I am working on an app that allows the user to select a vehicle from a list. The problem I am having at the moment is that when I try to map the vehicles to a list and select a single vehicle to set a class to, all of the other items in that list are also being set with the same class. Following is the code structure I am having issues with: