Closed adidahiya closed 7 years ago
Require all constructors to include both props and context as parameters, not just props (a common mistake that breaks libraries that rely on context.
props
context
constructor(props: SomeType, context?: any) { super(props, context); }
superseded by #54
Require all constructors to include both
props
andcontext
as parameters, not justprops
(a common mistake that breaks libraries that rely oncontext
.