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:

what kind of impovements are needed here ?