From c313e5da78f7834ee2b6926756c4ebf266edc94b Mon Sep 17 00:00:00 2001 From: Paul Adams Date: Tue, 28 Feb 2023 16:52:48 -0800 Subject: [PATCH 1/2] Update installation.mdx --- pages/docs/react/latest/installation.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/docs/react/latest/installation.mdx b/pages/docs/react/latest/installation.mdx index d95135a41..2791b17f0 100644 --- a/pages/docs/react/latest/installation.mdx +++ b/pages/docs/react/latest/installation.mdx @@ -28,7 +28,7 @@ Then add the following setting to your existing `bsconfig.json`: > The [new jsx transform](https://ko.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) of ReactJS is available with `mode: "automatic"`. -**Note** JSX v4 is newly introduced with the idomatic record-based representation of component. If your dependecies are not compatible with v4 yet, then you can use v3 in the same project. Check out the details in [Migrate from v3](/docs/react/latest/migrate-react) +**Note** JSX v4 is newly introduced with the idomatic record-based representation of a component. If your dependencies are not compatible with v4 yet, then you can use v3 in the same project. Check out the details in [Migrate from v3](/docs/react/latest/migrate-react) To test your setup, create a new `.res` file in your source directory and add the following code: @@ -44,7 +44,7 @@ Now run `npx rescript` and you should see a successful build. ## Exposed Modules -After a successful installation, `@rescript/react` will make following modules available in your project's global scope: +After a successful installation, `@rescript/react` will make the following modules available in your project's global scope: - `React`: Bindings to React - `ReactDOM`: Bindings to the ReactDOM From 9fc1f0f5a83a45a89ec5fa318142ca15852519ca Mon Sep 17 00:00:00 2001 From: Paul Adams Date: Tue, 28 Feb 2023 16:53:58 -0800 Subject: [PATCH 2/2] Update installation.mdx --- pages/docs/react/latest/installation.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/docs/react/latest/installation.mdx b/pages/docs/react/latest/installation.mdx index 2791b17f0..c0f76eb64 100644 --- a/pages/docs/react/latest/installation.mdx +++ b/pages/docs/react/latest/installation.mdx @@ -28,7 +28,7 @@ Then add the following setting to your existing `bsconfig.json`: > The [new jsx transform](https://ko.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) of ReactJS is available with `mode: "automatic"`. -**Note** JSX v4 is newly introduced with the idomatic record-based representation of a component. If your dependencies are not compatible with v4 yet, then you can use v3 in the same project. Check out the details in [Migrate from v3](/docs/react/latest/migrate-react) +**Note** JSX v4 is newly introduced with the idiomatic record-based representation of a component. If your dependencies are not compatible with v4 yet, then you can use v3 in the same project. Check out the details in [Migrate from v3](/docs/react/latest/migrate-react) To test your setup, create a new `.res` file in your source directory and add the following code: