September 2020
Beginner to intermediate
456 pages
11h 4m
English
This chapter covers
#if#each#awaitThere are three common approaches to adding conditional and iteration logic in the markup of various web frameworks. React uses JSX ( JavaScript XML) where logic is implemented by JavaScript code in curly braces (https://reactjs.org/docs/ introducing-jsx.html). Angular and Vue support framework-specific attributes for logic. For example, Angular supports ngIf and ngFor, while Vue supports v-if and v-for. Svelte supports a Mustache-like (https://mustache.github.io/) custom syntax that wraps HTML and the components to render.
There are only three kinds of block structures in Svelte:
if is used to specify ...
Read now
Unlock full access