Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering after promise resolution #11

Open
drmikecrowe opened this issue Nov 12, 2020 · 2 comments
Open

Rendering after promise resolution #11

drmikecrowe opened this issue Nov 12, 2020 · 2 comments

Comments

@drmikecrowe
Copy link

Any suggestion on how to handle this?

@alexanderby
Copy link
Owner

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
Copy link
Owner

alexanderby commented Jan 15, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants