formkit / drag-and-drop

https://drag-and-drop.formkit.com
MIT License
1.53k stars 30 forks source link

arrowjs reactivity #74

Open haoyun opened 5 months ago

haoyun commented 5 months ago

https://github.com/formkit/drag-and-drop/blob/d23853bfe84c7c52bdb372364550362e51af0517/docs/examples/introduction/introduction.ts#L10

should all examples like this be replaced by a "dynamic expression" according to https://www.arrow-js.com/docs/#templates.

Otherwise, the html is "static".

tonekk commented 3 months ago

Can confirm, none of the "vanilla" JS examples work. Apart from the fact that they're actually in typescript, they lack reactivity, as @haoyun said.

All of the map calls need to be wrapped in arrow functions.