Back to Remix

Minor.04 Remove Legacy On Prop

packages/component/.changes/minor.04-remove-legacy-on-prop.md

2.11.1360 B
Original Source

BREAKING CHANGE: remove legacy host-element on prop support in @remix-run/component.

Use the on() mixin instead:

  • Old: <button on={{ click() {} }} />
  • New: <button mix={[on('click', () => {})]} />

This change removes built-in host on handling from runtime, typing, and host-prop composition. Component-level handle.on(...) remains supported.