Error handling for the above code that can manipulate relationships other than parent-child if setIsOn and setIsOn1 of triggered are swapped.
if change the handle "isOn" and "isOn1" state, you can controll led state other than parent and child components.
Error handling for the above code that can manipulate relationships other than parent-child if setIsOn and setIsOn1 of triggered are swapped. if change the handle "isOn" and "isOn1" state, you can controll led state other than parent and child components.