For example, I have an es6-like class:
class Foo {...}
And I want to extend it:
class Bar extends Foo {...}
In reason-react documentation I found examples, but I'm not sure that it's appropriate for me:
let component = ReasonReact.reducerComponent "TodoAppRe";
let make _children => {
...component,
initialState: fun () => {count: 0},
<...>
But when i try to write code in this style, i get an error:
let myclass unit => {
...mysuperclass,
hello: fun () => {
Js.log "FooBar";
}
};
Error: Unbound record field update
(In this example mysuperclass is external from 3rd-party js-library).
Maybe I am doing something wrong?