Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React.Node or React.ReactNode ?

Copy link
Contributor

@ymqy ymqy Jan 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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