I want to open/close the torch light of mobile when i am toggling the button below..
<IconButton
onClick={() => setFlashOn(!flashOn)}
style={{ position: "absolute", right: 80, top: 20, zIndex: 2 }}
>
{flashOn ? (
<FlashButtonIcon width={44} height={44} />
) : (
<FlashButtonEmptyIcon width={44} height={44} />
)}
</IconButton>
At this time im only changing the fill color of the button when i am toggling it.
Is it possible with React?
