Reputation: 111
There is default style class, Need to override its elements with another class, check the image below.
How can I achieve this?
Upvotes: 0
Views: 30
Reputation: 10111
You should destructure after condition, not before condition.
<div style={{
...local,
...(src ? customLogo: {})
}}>
Upvotes: 2