Prevent Objects that are local to the current method from being used as values of JSX props
The following patterns are considered warnings:
<Item config={{}} />
<Item config={new Object()} />
<Item config={Object()} />
<Item config={this.props.config || {}} />
<Item config={this.props.config ? this.props.config : {}} />
<div style={{display: 'none'}} />
The following patterns are not considered warnings:
<Item config={staticConfig} />