Skip to content

Commit

Permalink
Fix flow error for missing type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ymqy committed Jan 5, 2023
1 parent 185bf2f commit 0287d47
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 0287d47

Please sign in to comment.