I've seen some React code where double pipe is used in an onClick:
<button onClick={() => setOne(false) || setTwo(false)}>Click</button>
What does the double pipe do in this structure?
I've seen some React code where double pipe is used in an onClick:
<button onClick={() => setOne(false) || setTwo(false)}>Click</button>
What does the double pipe do in this structure?