mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
Fix prettier on all files
This commit is contained in:
@@ -9,7 +9,7 @@ function createFunctionComponent(name?: string): React.FunctionComponent {
|
||||
if (props.children !== undefined) {
|
||||
return <React.Fragment>{props.children}</React.Fragment>;
|
||||
} else {
|
||||
return null
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -31,7 +31,7 @@ function createClassComponent(name?: string): React.ComponentClass {
|
||||
if (this.props.children !== undefined) {
|
||||
return this.props.children;
|
||||
} else {
|
||||
return null
|
||||
return null;
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -113,7 +113,7 @@ function createClassComponents(
|
||||
|
||||
return returnArr;
|
||||
}
|
||||
|
||||
|
||||
// Handle other invalid inputs
|
||||
throw new TypeError("Input is not valid");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user