You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/docs/react/latest/introduction.mdx
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,26 +4,26 @@ description: "Introduction to ReScript & ReactJS"
4
4
canonical: "/docs/react/latest/introduction"
5
5
---
6
6
7
-
# Introduction
7
+
# ReScript & React
8
8
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 modern React versions.
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 React codebases. The bindings are compatible with modern React versions (>= v16.8).
10
10
11
11
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.
12
12
13
13
All our documentated examples can be compiled in our [ReScript Playground](/try) as well.
14
14
15
-
> **This documentation assumes basic knowledge about ReactJS.**
16
-
>
17
-
> 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.
18
-
19
15
## Feature Overview
20
16
21
-
- No Babel plugins needed (JSX is part of the language!)
22
-
-Bindings for all important React APIs needed to build production ready apps (`useState`, `useReducer`, `useEffect`, `useRef`,...)
23
-
- No class based component API legacy (all ReScript & React codebases are built on functional components & hooks)
17
+
- No Babel plugins required (JSX is part of the language!)
18
+
-Comes with all essential React APIs for building production ready apps (`useState`, `useReducer`, `useEffect`, `useRef`,...)
19
+
- No component class API (all ReScript & React codebases are built on functional components & hooks)
24
20
- Strong level of type safetiness and type inference for component props and state values
25
21
-[GenType](/docs/gentype/latest/introduction) support for importing / exporting React components in Flow and TypeScript codebases
26
22
23
+
> **This documentation assumes basic knowledge about ReactJS.**
24
+
>
25
+
> 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.
26
+
27
27
## Development
28
28
29
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).
0 commit comments