Innovex Solutions interview question

Write a react component for a basic counter and a toggle switch.