I have searched everywhere for this answer to no avail. For instance, if I have a menu in the top right of a navbar, with TWO menu items to start (1. Login. 2. Register), and when a user clicks login or register and completes the form, the menu items change to (1 Logout 2. My Account). There also may be other menu items that will be enabled/disabled based on login state and role.
I can't find ANY code that gives an example of how to accomplish ANY of this, not even how to disable a menu item dynamically. I'm new to material-ui, but have been coding for decades. I can do this w/javascript but want to us material-ui.
Can someone help out with an example of how to do this using material-ui and react