react-notification-system icon indicating copy to clipboard operation
react-notification-system copied to clipboard

Example code throws ESlint Errors.

Open graphical-iain opened this issue 8 years ago • 0 comments

Using this.refs is deprecated react/no-string-refs Prop 'style' is forbidden on Components react/forbid-component-props Style prop value must be an object react/style-prop-object

<Notifications ref="notifications" style={false} />

I've fixed the this.refs is deprecated by making the ref a function that defines this.notificaiton, but I have no way of fixing the style is forbidden, since that's the only way to remove all the styles from the component.

graphical-iain avatar Aug 09 '17 14:08 graphical-iain