So I thing this is happening because of the conditional rendering and state change. Here is my rendering:
!isOn ? {...} :