narqo / react-islands

react-islands Components Library
MIT License
120 stars 13 forks source link

Menu: Use persistent id for hoveredIndex instead of index #115

Open narqo opened 8 years ago

narqo commented 8 years ago

We need somehow store hoveredIndex in the state, so it works properly in cases where the content of Menu is dynamic. Currently, we use a position of an Item, which is not persistent.