The below code:
class A {constructor(v) {
this.v = v;
}}
const a = fromJS(new A({a: 42, someOtherSubTree: {}}));
const aMod = a.updateIn(['v', 'a'], x=>43);
… fails with:
TypeError: a.updateIn is not a function
The simpler set
also fails with:
TypeError: a.set is not a function
I've found this related question which is however tagged with 'typescript' so I am not sure how the "wrapping" approach suggested there would translate to pure ES6.