Open haoyun opened 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".
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.
map
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".