---
title: {#key ...}
use_cases: "forcing re-renders, resetting component state, animations on value change"
---
```svelte
{#key expression}...{/key}
```
Key blocks destroy and recreate their contents when the value of an expression changes. When used around components, this will cause them to be reinstantiated and reinitialised:
```svelte
{#key value}