Skip to content

Commit 247e598

Browse files
committed
Add comment
1 parent b860241 commit 247e598

File tree

1 file changed

+3
-0
lines changed
  • packages/react-scripts/fixtures/kitchensink/src

1 file changed

+3
-0
lines changed

packages/react-scripts/fixtures/kitchensink/src/App.js

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ class BuiltEmitter extends React.Component {
77

88
componentDidMount() {
99
const { feature } = this.props
10+
11+
// Class components must call this.props.onReady when they're ready for the test.
12+
// We will assume functional components are ready immediately after mounting.
1013
if (!Component.isPrototypeOf(feature)) {
1114
this.handleReady();
1215
}

0 commit comments

Comments
 (0)