ИК
<p>{x} is greater than 10</p>
{:else if 5 > x}
<p>{x} is less than 5</p>
{:else}
<p>{x} is between 5 and 10</p>
{/if}
Size: a a a
ИК
EM
T
EM
{#switch type }
{:case "text"}
<div>text</div>
{:case "image"}
<img src="/" />
{: default}
<p>default”</p>
{/switch}
типа такого бы :DИК
ДБ
{#switch type }
{:case "text"}
<div>text</div>
{:case "image"}
<img src="/" />
{: default}
<p>default”</p>
{/switch}
типа такого бы :DEM
<button on:click={() => {}) />
<button on:click={handleClick} />ДБ
<button on:click={() => {}) />
<button on:click={handleClick} />EM
ДБ
ДБ
EM
EM
ДБ
EM
NU
NU
SS
<script context="module">
export function preload({params, query}){
return this.fetch(...).then(res=>{
if(res.status === 200){
return {posts: res.json()};
}
this.error(404, 'Not found');
});
}
</script>
DN
NU