malevic
malevic copied to clipboard
Rendering after promise resolution
Any suggestion on how to handle this?
Hi @drmikecrowe! You might be the first user of malevic
! Didn't notice your problem.
This library renders everything synchronously, when you call render()
or sync()
.
@drmikecrowe I browsed your repository a little bit. Sorry.
Some notice: in JSX lower case tag is used for elements (like <div>
or custom elements like my-custom-element
defined with customElements.define('my-custom-element', MyCustomElement)
). So when you assign a string, the behavior is unpredictable.
For components use names starting from upper case. They should be functions.