Skip to content

Commit 4e2d358

Browse files
committed
update error message
1 parent c99aae2 commit 4e2d358

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/build_tests/super_errors/expected/react_component_with_props_external.res.expected

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
2 │ external make: React.element = "default"
77
3 │
88

9-
Components cannot be defined as externals when using @react.componentWithProps. Please use @react.component instead.
9+
Components cannot be defined as externals when using @react.componentWithProps.
10+
11+
If you intended to define an external for a React component using a props type,
12+
use the type React.component<props> instead.
13+
Alternatively, use @react.component for an external definition with labeled arguments.

0 commit comments

Comments
 (0)