How to update Custom Component state from a JS query

Is that a legacy custom component which you have linked to?
The example I shared is the new "custom component library" .
I don't think there is a "updateModel"