Skip to content

Commit

Permalink
fix function type for flow (#25965)
Browse files Browse the repository at this point in the history
These files fail CI `yarn_flow`.
  • Loading branch information
mondaychen authored Jan 5, 2023
1 parent ff9f943 commit 2619886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function generateArray(size) {

const arr = generateArray(50000);

export default function LargeSubtree() {
export default function LargeSubtree(): React.Node {
const [showList, setShowList] = React.useState(false);
const toggleList = () => {
const startTime = performance.now();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import * as React from 'react';
import LargeSubtree from './LargeSubtree';

export default function Home() {
export default function Home(): React.Node {
return (
<div>
<LargeSubtree />
Expand Down

0 comments on commit 2619886

Please sign in to comment.