React js show/hide div with javascipt

i want to show and hide some divs and i tried to do that but react gives error as always so how can i make one.

1 Like

What have you tried so far?