Skip to content

Commit ef5925f

Browse files
committed
Remove ReasonReact mentions
1 parent f52de03 commit ef5925f

File tree

5 files changed

+12
-21
lines changed

5 files changed

+12
-21
lines changed

pages/docs/react/latest/beyond-jsx.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ JSX is a syntax sugar that allows us to use React components in an HTML like man
1414

1515
**Note:** This section requires knowledge about the low level apis for [creating elements](./elements-and-jsx#creating-elements-from-component-functions), such as `React.createElement` or `ReactDOMRe.createDOMElementVariadic`.
1616

17+
> **Note:** This page assumes your `bsconfig.json` to be set to `"reason": { "react-jsx": 3 }` to apply the right JSX transformations.
18+
1719
## Component Types
1820

1921
A plain React component is defined as a `('props) => React.element` function. You can also express a component more efficiently with our shorthand type `React.component('props)`.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Components and Props
3-
description: "Basic concepts for components and props in ReasonReact"
3+
description: "Basic concepts for components and props in ReScript & React"
44
canonical: "/docs/react/latest/components-and-props"
55
---
66

pages/docs/react/latest/elements-and-jsx.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ let element = React.array([
8282
])
8383
```
8484

85-
**Note:** We don't offer a `React.list` function because a `list` value would impose runtime overhead. ReasonReact cares about clean, idiomatic JS output. If you want to transform a `list` of elements to a single React element, combine the output of `Belt.List.toArray` with `React.array` instead.
85+
**Note:** We don't offer a `React.list` function because a `list` value would impose runtime overhead. ReScript cares about clean, idiomatic JS output. If you want to transform a `list` of elements to a single React element, combine the output of `Belt.List.toArray` with `React.array` instead.
8686

8787
### Creating Null Elements
8888

pages/docs/react/latest/installation.mdx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ canonical: "/docs/react/latest/installation"
99
Add following dependency to your ReScript project (in case you don't have any project yet, check out the [installation instructions](/docs/manual/latest/installation) in the manual):
1010

1111
```
12-
npm install reason-react --save
12+
npm install @rescript/rescript-react --save
1313
```
1414

1515
Then add the following setting to your existing `bsconfig.json`:
1616

1717
```json
1818
{
1919
"reason": { "react-jsx": 3 },
20-
"bs-dependencies": ["reason-react"]
20+
"bs-dependencies": ["@rescript/rescript-react"]
2121
}
2222
```
2323

@@ -35,23 +35,20 @@ Now rerun your build with `bsb -make-world` and you should see a successful buil
3535

3636
## Exposed Modules
3737

38-
After a successful installation, ReasonReact will make following modules available in your project's global scope:
38+
After a successful installation, `rescript-react` will make following modules available in your project's global scope:
3939

4040
- `React`: Bindings to React
4141
- `ReactDOM`: Bindings to the ReactDOM
4242
- `ReactDOMServer`: Bindings to the ReactDOMServer
4343
- `ReactEvent`: Bindings to React's synthetic events
4444
- `ReactDOMStyle`: Bindings to the inline style API
45-
- `ReasonReactRouter`: A simple, yet fully featured router with minimal memory allocations
45+
- `RescriptReactRouter`: A simple, yet fully featured router with minimal memory allocations
4646

4747

4848
### Deprecated Modules
4949

50-
ReasonReact has gone a long way, so we still keep around a few modules for legacy reasons. We will deprecate them in the future in favor of...
50+
`rescript-react` has gone a long way, so we still keep around a few modules for legacy reasons. We will deprecate them in the future in favor of...
5151

52-
- `ReasonReact` -> `React`
5352
- `ReactDOMRe` -> `ReactDOM`
54-
- `ReactDOMServerRe` -> `ReactDOMServer`
55-
- `ReasonReactCompat` -> no replacement needed
5653

5754
Actual usage and for each module will be discussed in the rest of this documentation.

pages/docs/react/latest/introduction.mdx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ canonical: "/docs/react/latest/introduction"
66

77
# Introduction
88

9-
ReScript offers first class bindings for [ReactJS](https://reactjs.org) and are designed and built by people using Reason and React in large, mission critical production React codebases. The bindings are compatible with all React versions > 16.8 (the version that initially introduced React hooks).
9+
ReScript offers first class bindings for [ReactJS](https://reactjs.org) and are designed and built by people using ReScript and React in large, mission critical production React codebases. The bindings are compatible with all React versions > 17.
1010

1111
The ReScript philosophy is to compile as closely to idiomatic JS code as possible; in case of ReactJS we made no exception, so it's not only easy to transfer all the React knowledge to the ReScript platform, but also straightorward to integrate with existing ReactJS codebases and libraries.
1212

@@ -16,23 +16,15 @@ All our documentated examples can be compiled in our [ReScript Playground](/try)
1616
>
1717
> Please note that even though we will cover many basic React concepts, it might still be necessary to have a look at the official [ReactJS](https://reactjs.org) resources, especially if you are a complete beginner with React.
1818
19-
<Warn>
20-
21-
**Note about the wording:**
22-
23-
The React bindings are officially called **ReasonReact** due to legacy reasons. The name will eventually be adapted in the future. For simplicity reasons, we try to stick either to `ReScript & React`, `React bindings` or just `React`.
24-
25-
</Warn>
26-
2719
## Feature Overview
2820

2921
- No Babel plugins needed (JSX is part of the language!)
3022
- Bindings for all important React APIs needed to build production ready apps (`useState`, `useReducer`, `useEffect`, `useRef`,...)
31-
- No class based component API legacy (all ReasonReact codebases are built on functional components & hooks)
23+
- No class based component API legacy (all ReScript & React codebases are built on functional components & hooks)
3224
- Strong level of type safetiness and type inference for component props and state values
3325
- [GenType](/docs/gentype/latest/introduction) support for importing / exporting React components in Flow and TypeScript codebases
3426

3527
## Development
3628

37-
- In case you are having any issues or if you want to help us out improving our bindings, check out our [ReasonReact Github repository](https://github.com/reasonml/reason-react).
29+
- In case you are having any issues or if you want to help us out improving our bindings, check out our [rescript-react Github repository](https://github.com/rescript-lang/rescript-react).
3830
- For doc related issues, please go to the [rescript-lang.org repo](https://github.com/reason-association/rescript-lang.org).

0 commit comments

Comments
 (0)