Skip to content

Commit 79af88d

Browse files
committed
Clarify stateless component function naming
1 parent 8f0f289 commit 79af88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
}
5858
}
5959
60-
// bad (since arrow functions do not have a "name" property)
60+
// bad (relying on function name inference is discouraged)
6161
const Listing = ({ hello }) => (
6262
<div>{hello}</div>
6363
);

0 commit comments

Comments
 (0)