bootstrap-switch-button-react
                                
                                 bootstrap-switch-button-react copied to clipboard
                                
                                    bootstrap-switch-button-react copied to clipboard
                            
                            
                            
                        Using the sample code in react triggers a style violation
I used the code from the documentation:
<BootstrapSwitchButton
    checked={false}
    onlabel='Admin User'
    onstyle='danger'
    offlabel='Regular User'
    offstyle='success'
    style='w-100 mx-3'
    onChange={(checked: boolean) => {
        this.setState({ isUserAdmin: checked })
    }}
/>
And it produced a style violation:
./src/App.js
  Line 102:  Style prop value must be an object  react/style-prop-object
  Line 112:  Style prop value must be an object  react/style-prop-object
  Line 122:  Style prop value must be an object  react/style-prop-object
  Line 132:  Style prop value must be an object  react/style-prop-object
Hello, I have the same react warning. Does anyone has an advice, how to solve it, please? Thank you