# dynamic

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/prelude/function-dynamic/

**function** · [`ferroui-view`](/docs/0.5.0/api/ferroui-view/) · v0.5.0

```rust
fn dynamic<E: IntoElement>(render: impl Fn() -> E + 'static) -> crate::element::Element
```

Children computed by a reactive closure: made again whenever what it
read changes. An element with a key keeps its control while an element
with the same key comes back (its values are not compared: give the key
what identifies the values, or use [`for_each`](/docs/0.5.0/api/ferroui-view/prelude/function-for_each/)).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/control_flow.rs#L79)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
