invoke
Morph
Morph a DOM element while preserving client browser state.
Morph Element
We can transform an element from one state to another with TurboBoost Streams.
- One (1)
- Two (2)
- Three (3)
<%= turbo_stream.invoke(:morph, args: [render("demos/morph/list_two")], selector: "#morph-list") %>