In this post, we have prepared a button that is made using React. This button is a toggle switch with color change effect. By clicking on this switch, the color of the button changes from green to blue and its scroll bar goes to the right. The rolling circle inside this switch is white.