Skip to content

Commit aa5fe96

Browse files
committed
add notes to migration
1 parent 757fd1b commit aa5fe96

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pages/docs/manual/latest/migrate-to-v11.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ Open it so it's available in the global scope.
6262
}
6363
```
6464

65+
One major change to be aware of is that array access now returns an `option`.
66+
```res
67+
let firstItem = myArray[0] // Some("hello")
68+
```
69+
If you would like to not use an `option`, you can use [`Array.getUnsafe`](api/core/array#value-getUnsafe).
70+
6571
For a detailed explanation on migration to ReScript Core, please refer to its [migration guide](https://github.com/rescript-association/rescript-core#migration). A semi-automated script is available as well.
6672

6773
See ReScript Core API docs [here](api/core).

0 commit comments

Comments
 (0)