Skip to content
ZOLO / TE747 Type · error

markup spread is not a compatible HtmlAttrs/static component record

Compiler diagnostic TE747: markup spread is not a compatible HtmlAttrs/static component record.

Why this fires

TE747 reports an incompatible markup spread. Dynamic native-element forwarding must use HtmlAttrs; component spreads must expose statically known record fields so ordinary prop checking remains active.

fn Button(attrs: HtmlAttrs) -> View {
    <button {...attrs}>Save</button>
}

Fix it

Type forwarded DOM attributes as HtmlAttrs, use a map/record literal for a component spread, or expand the component props explicitly.

Global index

Find your way through Zolo

Try an idea

Start here

9 results

9 results

en