0

New react developer here, looking for react(hooks) toggle which toggles two things at the same time. My question: when user clicks ‘Click here to show second Div content’, then the content should change to ‘ < div>
Second Div content< / p>
< / div>’ and button should change to ‘Click here to show first Div content’, how to have this as toggle… here what i have done so far:
https://codesandbox.io/s/toggle-menu-forked-f144r?file=/src/App.js:426-483

what kind of impovements are needed here ?