'How to highlight the selected menu item

I want to highlight the selected menu item, can anyone help?

 <div className="scrollmenu" style={{ display: "flex" }}>
                {
                  category.map((item) => (
                    <div className="menu__wrapper">
                      <menu
                        
                        onClick={() => { showCat(item.id); showCatName(item.name); }}
                        className="mobile-cat-menu"
                      // style={{ float: "right", cursor: "pointer", paddingLeft: "0px", margin: "0px" }}
                      >
                        {item.name}
                      </menu>
                    </div>
                  ))}
              </div>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source