这是我的错误:
vendor.js:16064警告:道具
style
不匹配。服务器: “ position:absolute; top:0px; right:0px; bottom:0px; left:0px; background:url(null) 居中”客户: “ position:absolute; top:0px; right:0px; bottom:0px; left:0px; background:url(data:image / png; base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8 / 9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYYAGBZAAAGZAGAXAGZAGAXAGZAGAXAGAAJAGAAJGAAJAGAAJAGAAJAGJAGAAJAGAJAGJAGAAJAGAJAGAJAGJAGJAXAGJAXAJAGJAAJAAJNA_AGA_AGA_AGB关卡 居中左”
我用React和Node创建一个简单的应用程序。
一切正常,直到我使用import { SketchPicker } from 'react-color'
为止,在此应用程序中我也使用了样式组件。
怎么了?
render() {
console.log(this.props);
return (
<div>
<GlobalStyle selectedFonts={this.props.eventsStore.selectedFonts} />
<SketchPicker onChange={ this.colorChange.bind(this) } />
</div>
);
}