It appears that the calls to button.value(‘Set the text’) are being ignored.
I refer to your demonstration page: https://www.jqwidgets.com/react/react-buttons/react-togglebutton-defaultfunctionality.htm
Pressing the toggle button should switch the button text as indicated by this code in App.js
if (toggled)
{
this.refs.myToggleButton.value('Toggled On');
}
else
{
this.refs.myToggleButton.value('Toggled Off');
}
Unfortunately, from my tests with both Firefox and Chrome, the button text is not being updated. I also notice this problem with JqxSwitchButton as well.