You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am using decorators, decorators work just with class so i must not use stateless function
@dragDropContext(HTML5Backend)classToDoListextendsComponent{render(){const{ data }=this.props;return(<div>{data.map(((todo,i)=><SingleToDodata={todo}/>))}</div>);}}
and in this case i have error prefer-stateless-function
procedular, dandrushenko, ephys, OscarBarrett, SuEric and 1 more
Activity
ljharb commentedon Jan 20, 2017
It makes sense that a decorated
class
should not be reported here.prefer-stateless-function w/ decorators
OscarBarrett commentedon Apr 19, 2017
Could a new release be published that includes this please?
45 remaining items