0

What's the difference between

onClick={() => setModal({ add: true })}

and

onClick={setModal.bind(null, { add: true })}

If any plus in using bind?

Searched everywhere but couldn't find an answer

I will be glad if you explain in more detail

Phil
  • 157,677
  • 23
  • 242
  • 245

0 Answers0