Skip to content

Commit 55f5707

Browse files
authored
[Fix] Correct the typo "re" to "res" (#443)
- Fix Typo comment: re => res in ReScript React section
1 parent 1d4073e commit 55f5707

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ Every ReScript component can be used in JSX. For example, if we want to use our
301301
<CodeTab labels={["ReScript", "JS Output"]}>
302302

303303
```res
304-
// src/App.re
304+
// src/App.res
305305
306306
@react.component
307307
let make = () => {

pages/docs/react/latest/hooks-context.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Accepts a `React.Context.t` (the value returned from `React.createContext`) and
3131
<CodeTab labels={["ReScript", "JS Output"]}>
3232

3333
```res
34-
// App.re
34+
// App.res
3535
module ThemeContext = {
3636
let context = React.createContext("light")
3737

pages/docs/react/latest/hooks-effect.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ As an example, let's write a counter component that updates `document.title` on
8888
<CodeTab labels={["ReScript", "JS Output"]}>
8989

9090
```res
91-
// Counter.re
91+
// Counter.res
9292
module Document = {
9393
type t;
9494
@val external document: t = "document";

pages/docs/react/latest/hooks-overview.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Just for a quick look, here is an example of a `Counter` component that allows a
2727
<CodeTab labels={["ReScript", "JS Output"]}>
2828

2929
```res
30-
// Counter.re
30+
// Counter.res
3131
@react.component
3232
let make = () => {
3333
let (count, setCount) = React.useState(_ => 0);

pages/docs/react/latest/hooks-ref.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ More infos on direct DOM manipulation can be found in the [Refs and the DOM](./r
5050
<CodeTab labels={["ReScript", "JS Output"]}>
5151

5252
```res
53-
// TextInputWithFocusButton.re
53+
// TextInputWithFocusButton.res
5454
5555
@send external focus: Dom.element => unit = "focus"
5656
@@ -98,7 +98,7 @@ Reusing the example from our [Refs and the DOM](./refs-and-the-dom#callback-refs
9898
<CodeTab labels={["ReScript", "JS Output"]}>
9999

100100
```res
101-
// CustomTextInput.re
101+
// CustomTextInput.res
102102
103103
@send external focus: Dom.element => unit = "focus"
104104

pages/docs/react/latest/refs-and-the-dom.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ The example below implements a common pattern: using the ref callback to store a
187187
<CodeTab labels={["ReScript", "JS Output"]}>
188188

189189
```res
190-
// CustomTextInput.re
190+
// CustomTextInput.res
191191
192192
@send external focus: Dom.element => unit = "focus"
193193

0 commit comments

Comments
 (0)