Skip to content

Commit c2fd496

Browse files
committed
Website: add more intro text
1 parent b677230 commit c2fd496

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

website/docs/index.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ _Reason React Native_ is a safe & simple way to build
88
[Reason](http://reasonml.github.io/), using
99
[ReasonReact](https://reasonml.github.io/reason-react/).
1010

11+
## Why _Reason React Native_ ?
12+
1113
By leveraging the ReasonML great type system, expressive language features and
12-
smooth interoperability with JS (thanks to
14+
smooth interoperability with JavaScript (thanks to
1315
[BuckleScript](https://bucklescript.github.io)), _Reason React Native_ provide
1416
bindings for React Native features as components & APIs that are:
1517

@@ -21,8 +23,25 @@ It is often said that writing ReactJS code feels like "just using JavaScript".
2123
The same applies to _Reason React_ with _Reason React Native_: you will feel
2224
like you are "just using Reason".
2325

26+
## How to use _Reason React Native_ ?
27+
28+
Like _ReasonReact_, _Reason React Native_ is a ReasonML package that exposes
29+
bindings for React Native.
30+
31+
On your side, you write Reason code that use the `ReactNative` module exposed by
32+
`reason-react-native` package that you will find on `npm`.
33+
34+
BuckleScript will compile this code to safe JavaScript that React Native can
35+
consume like standard JavaScript.
36+
2437
![Introduction](/reason-react-native/schemas/introduction.svg)
2538

39+
If you are familiar with Flow or TypeScript, you can see Reason as the next
40+
level of strongly typed JavaScript.
41+
42+
In short, you write safer code that will be compiled to safe JavaScript & end up
43+
with a safer React Native app!
44+
2645
## Zero-Cost
2746

2847
What is awesome about _Reason React Native_ bindings is that they don't

0 commit comments

Comments
 (0)