When your component is rendering mainly html tags, you have an opportunity to break it up into smaller subcomponents, which you can then render as JSX.
You're using button several times to do a similar job, which tells me you could write a Button component. If you decompose into smaller components (you don't necessarily need a new file for each tiny subcomponent, they can go in the same file as the main component that is exported)
With a little decomposition, your Menu component's render could look like this:
When your component is rendering mainly html tags, you have an opportunity to break it up into smaller subcomponents, which you can then render as JSX.
You're using
button
several times to do a similar job, which tells me you could write aButton
component. If you decompose into smaller components (you don't necessarily need a new file for each tiny subcomponent, they can go in the same file as the main component that is exported)With a little decomposition, your Menu component's render could look like this: