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
With this change we can refer to `.current` field of the record by opening the module.
Previously the following code would fail to compile with " The record field React.current can't be found."
```
open ReactV3
@get external videoWidth: Dom.Element.t => float = "videoWidth"
@get external videoHeight: Dom.Element.t => float = "videoHeight"
let getVideoDimensions = videoRef =>
videoRef.React.current
->Js.Nullable.toOption
->Option.map(video => (video->videoWidth, video->videoHeight))
```
0 commit comments