How to overload material Switch component css
问题 I am trying to overload the MuiSwitch-track class of switch but it's not working.Basically i want to overload for a particular switch. I tried using "@global": { ".MuiSwitch-track": { backgroundColor: "#d80c0a" } but it overloaded all switches. Is there any way to do the same for a single switch. <Switch style={ this.state.switchChecked ? { color: "rgb(65, 207, 65)" } : { color: "#d80c0a" } } size="small" checked={switchChecked} onClick={this.handleSwitchState} value="userSwitch" /> 回答1: