allow returning null for SFCs

This commit is contained in:
Donald Pipowitch
2016-10-11 21:46:33 +02:00
committed by GitHub
parent dd79f35ee9
commit b329e7ec15
+1 -1
View File
@@ -201,7 +201,7 @@ declare namespace React {
type SFC<P> = StatelessComponent<P>;
interface StatelessComponent<P> {
(props: P, context?: any): ReactElement<any>;
(props: P, context?: any): ReactElement<any> | null;
propTypes?: ValidationMap<P>;
contextTypes?: ValidationMap<any>;
defaultProps?: P;