malevic icon indicating copy to clipboard operation
malevic copied to clipboard

Rendering after promise resolution

Open drmikecrowe opened this issue 3 years ago • 2 comments

Any suggestion on how to handle this?

drmikecrowe avatar Nov 12 '20 23:11 drmikecrowe

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().

alexanderby avatar Jan 15 '21 17:01 alexanderby

@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.

alexanderby avatar Jan 15 '21 17:01 alexanderby