Skip to content

Commit 5e43270

Browse files
committed
add make function name comment
1 parent d7107b4 commit 5e43270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/docs/react/latest/components-and-props.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ var make = App;
318318

319319
### Handwritten Components
320320

321-
You don't need to use the `@react.component` decorator to write components that can be used in JSX. Instead you can write the `make` function with type `props` and these will always work as React components.
321+
You don't need to use the `@react.component` decorator to write components that can be used in JSX. Instead you can write the `make` function with type `props` and these will always work as React components. But then you will have the issue with the component name being "make" in the React dev tools.
322322

323323
For example:
324324

0 commit comments

Comments
 (0)