I have a simple callback which should return display none for a boostrap container. I.e im trying to render that entire container (including rows and cols inside) invisible
@app.callback(
ServersideOutput('bootstrap-container', 'style'),
Input...
def do_something(var):
if condition...
return {'display':'none'}
And i’m getting a React error message while inspecting on chrome:
The
style
prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + ‘em’}} when using JSX.
Any ideas why this might be an issue?