In order to make multiple function calls in a prop in React do the following:
<MyComponent
onClick={() => {setUserActive(false); setConfirmModal(true);}}
/>
Published by Muhammad Asfour
Estimated reading time: 1 min
In order to make multiple function calls in a prop in React do the following:
<MyComponent
onClick={() => {setUserActive(false); setConfirmModal(true);}}
/>