Skip to content

Commit 4a8a6cc

Browse files
authored
Merge pull request rescript-lang#294 from agarwal/patch-1
Fix typo: tough -> though
2 parents facba3c + 1a259ff commit 4a8a6cc

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
@@ -292,7 +292,7 @@ let make = (~onClick, ~msg, ~children) => {
292292

293293
In the example above, `onClick` will be inferred as `ReactEvent.Mouse.t => unit`, `msg` as `string` and `children` as `React.element`. Type inference is especially useful when you just forward values to some smaller (privately scoped) functions.
294294

295-
Even tough type inference spares us a lot of keyboard typing, we still recommend to explicitly type your props (just like with any public API) for better type visibility and to prevent confusing type errors.
295+
Even though type inference spares us a lot of keyboard typing, we still recommend to explicitly type your props (just like with any public API) for better type visibility and to prevent confusing type errors.
296296

297297
## Using Components in JSX
298298

0 commit comments

Comments
 (0)