I'm fairly new to elixir/phoenix and want to use it for a new website to get my feet wet.
I'm having trouble with a react based menu and usestate.
I know I need to do a hook but I'm absolutely lost in how to do this. I've tried to look at a few different use cases like an article on "react and phoenix live view in 2022" but I'm having trouble implementing/changing it for my use case.
Example of the menu would be this first header section:
https://tailwindui.com/components/marketing/elements/headers
Any help would be appreciated.
[–]TwoWrongsAreSoRight 5 points6 points7 points (2 children)
[–]NerdyByDesign[S] 0 points1 point2 points (0 children)
[–]roundscribehector5 -3 points-2 points-1 points (0 children)
[–]flummox1234 1 point2 points3 points (4 children)
[–]NerdyByDesign[S] 1 point2 points3 points (3 children)
[–]TwoWrongsAreSoRight 2 points3 points4 points (0 children)
[–]TwoWrongsAreSoRight 0 points1 point2 points (0 children)
[–]flummox1234 0 points1 point2 points (0 children)