konvajs / konva

Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
http://konvajs.org/
Other
11.73k stars 934 forks source link

Does It support controlled mode? #1790

Closed vaynevayne closed 4 months ago

vaynevayne commented 4 months ago

I don't see any apis or demos for controlled use. Do you support them?

lavrton commented 4 months ago

What do you mean by "controlled use"?

vaynevayne commented 4 months ago

yes https://zh-hans.legacy.reactjs.org/docs/forms.html#controlled-components

lavrton commented 4 months ago

It is partially supported with the strict mode: https://github.com/konvajs/react-konva?tab=readme-ov-file#strict-mode