Hacker News new | past | comments | ask | show | jobs | submit login

What in hells name is an #await doing in the HTML render function?



The #await is a Svelte feature that lets you handle promises, and show different content when the promise is unresolved/loading, resolved, or rejected. Check out the demo in the docs: https://svelte.dev/tutorial/await-blocks




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: