Skip to content

Commit b9a13f0

Browse files
committed
1 parent 1582f6f commit b9a13f0

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

docs/element-type-is-invalid.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This likely means that:
1212
- The JS component uses ES6 default export (`export default MyComponent`) (or, you forgot to export the component altogether!).
1313
- You're using Babel/Webpack to compile those ES6 modules.
1414

15-
This is a common mistake. Please see Melange's [Import an ES6 Default Value](https://melange.re/v2.0.0/communicate-with-javascript/#default-es6-values). Aka, instead of:
15+
This is a common mistake. Please see Melange's [Import an ES6 Default Value](https://melange.re/v4.0.0/communicate-with-javascript/#default-es6-values). Aka, instead of:
1616

1717
```reason
1818
[@mel.module] external myJSReactClass: ReasonReact.reactClass = "./myJSReactClass";

docs/event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ React.Event module contains all event types as submodules, e.g. `React.Event.For
88

99
You can access their properties using the `React.Event.{{EventName}}.{{property}}` method. For example, to access the `target` property of a `React.Event.Form.t` event, you would use `React.Event.Form.target`.
1010

11-
Since `target` is a JavaScript Object, those are typed as [`Js.t`](https://melange.re/v2.0.0/communicate-with-javascript/#using-jst-objects). If you're accessing fields on an object, like `event.target.value`, you'd use [Melange's `##` object access FFI](https://melange.re/v2.0.0/communicate-with-javascript/#using-jst-objects):
11+
Since `target` is a JavaScript Object, those are typed as [`Js.t`](https://melange.re/v4.0.0/communicate-with-javascript/#using-jst-objects). If you're accessing fields on an object, like `event.target.value`, you'd use [Melange's `##` object access FFI](https://melange.re/v4.0.0/communicate-with-javascript/#using-jst-objects):
1212

1313
```reason
1414
React.Event.Form.target(event)##value;

docs/installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ReasonReact is built to work with [Melange](https://melange.re/) and [Reason](ht
66

77
If you want to build a new app or a new website with ReasonReact and Melange, we recommend to use a package manager such as [opam](https://opam.ocaml.org/) to download and install the required dependencies.
88

9-
There are other alternatives available, such as [esy](https://esy.sh/) or [nix](https://nixos.org/). See [Melange documentation](https://melange.re/v2.0.0/getting-started/#alternative-package-managers-experimental) for details.
9+
There are other alternatives available, such as [esy](https://esy.sh/) or [nix](https://nixos.org/). See [Melange documentation](https://melange.re/v4.0.0/getting-started/#alternative-package-managers-experimental) for details.
1010

1111
#### Requirements
1212

@@ -17,11 +17,11 @@ There are other alternatives available, such as [esy](https://esy.sh/) or [nix](
1717

1818
Melange is the toolchain that compiles Reason and OCaml to JavaScript. It integrates with dune to provide a seamless experience for building and running your project.
1919

20-
Follow the getting started guide on [Melange's documentation](https://melange.re/v2.0.0/getting-started/) to continue.
20+
Follow the getting started guide on [Melange's documentation](https://melange.re/v4.0.0/getting-started/) to continue.
2121

2222
## Editor Setup
2323

24-
Since Reason is an alternative syntax for OCaml, we integrate seamlessly into the official OCaml editor toolchain. Following the recommendation from [Melange's documentation](https://melange.re/v2.0.0/getting-started/#editor-integration).
24+
Since Reason is an alternative syntax for OCaml, we integrate seamlessly into the official OCaml editor toolchain. Following the recommendation from [Melange's documentation](https://melange.re/v4.0.0/getting-started/#editor-integration).
2525

2626
- For VSCode, we recommend using the [vscode-ocaml-platform](https://github.com/ocamllabs/vscode-ocaml-platform) plugin
2727
- For other editors (Emacs and Vim), we recommend using a language server client plugin of your choice, and pairing it with [ocaml-lsp](https://github.com/ocaml/ocaml-lsp).

docs/intro-example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if (root != null) {
3737

3838
### Using Greeting in an existing JavaScript/Typescript application
3939

40-
It's easy to import a ReasonReact component into your existing app. After being transpiled to JS, all Reason components will have `.js` as extension by default and export a function component called `make`. You can change it with [module_systems](https://melange.re/v2.0.0/build-system/#commonjs-or-es6-modules) field inside a [`melange.emit` stanza](https://dune.readthedocs.io/en/stable/melange.html#melange-emit).
40+
It's easy to import a ReasonReact component into your existing app. After being transpiled to JS, all Reason components will have `.js` as extension by default and export a function component called `make`. You can change it with [module_systems](https://melange.re/v4.0.0/build-system/#commonjs-or-es6-modules) field inside a [`melange.emit` stanza](https://dune.readthedocs.io/en/stable/melange.html#melange-emit).
4141

4242
```js
4343
/* file: App.js */

website/blog/2023-06-11-reborn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Today, we are happy to announce that ReasonReact is back and will be maintained
88

99
## What's changing?
1010

11-
We released ReasonReact to the [opam repository](https://ocaml.org/p/reason-react/latest). In the Melange docs, we document [how to depend](https://melange.re/v2.0.0/package-management/) on packages in opam.
11+
We released ReasonReact to the [opam repository](https://ocaml.org/p/reason-react/latest). In the Melange docs, we document [how to depend](https://melange.re/v4.0.0/package-management/) on packages in opam.
1212

1313
We updated the documentation to reflect these new changes and we will continue to improve it over time.
1414

1515
## Adopting ReasonReact
1616

17-
To use ReasonReact, you must be using Melange. [Get started here](https://melange.re/v2.0.0/getting-started/).
17+
To use ReasonReact, you must be using Melange. [Get started here](https://melange.re/v4.0.0/getting-started/).
1818

1919
Next:
2020

website/blog/2023-09-13-reason-react-ppx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Take a look at [reasonml/reason-react/releases/tag/0.12.0](https://github.com/re
2727

2828
## Updating to latest
2929

30-
ReasonReact works best with Melange. [Get started here](https://melange.re/v2.0.0/getting-started/).
30+
ReasonReact works best with Melange. [Get started here](https://melange.re/v4.0.0/getting-started/).
3131

3232
Next:
3333

@@ -42,7 +42,7 @@ Next:
4242

4343
- Remove any usage of `ReactDOM.props`
4444
- Bump React.js version to v17/v18 to use the new JSX transformation
45-
- We added `depexts` in opam for `react` and `react-dom` to ensure you have the correct versions installed from npm. [`depexts`](https://opam.ocaml.org/packages/opam-depext/) is the mechanism by opam to ensure the correct versions of external dependencies are present in your system. Learn more here on the Melange documentation page about [bindings and package management](https://melange.re/v2.0.0/package-management/#bindings-and-package-management):
45+
- We added `depexts` in opam for `react` and `react-dom` to ensure you have the correct versions installed from npm. [`depexts`](https://opam.ocaml.org/packages/opam-depext/) is the mechanism by opam to ensure the correct versions of external dependencies are present in your system. Learn more here on the Melange documentation page about [bindings and package management](https://melange.re/v4.0.0/package-management/#bindings-and-package-management):
4646

4747
```clojure
4848
depexts: [

0 commit comments

Comments
 (0)