I have solved the issue the karax way, to produce a new element and get it
render, I created each element using `VNodeKind`, to make the button "create"
the new element, I simply save the previously selected option `VNodeKind` and
createt with `newVNode`, wrapped in `buildHtml()`:
According to that README, my third approach should work. I mean `renderElement
selector.selected` should render the new element when some event happens:
> But how does Karax actually keep the DOM up to date? The trick is that every
> event handler is wrapped in a helper proc that triggers a
You have an example in the repo's Readme:
[https://github.com/pragmagic/karax#event-model](https://github.com/pragmagic/karax#event-model)
Basically use for
I am fairly new using karax. Playing with it, I tried to make elements spawn by
clicking a button. The following approach works fine but it throws an exception
ruining other karax components.
type
Selector = ref object
selected: kstring
...