replaceElement method
Send an element replacement
Implementation
void replaceElement(String selector, String html) {
final changes = [
{
'action': 'replace_element',
'selector': selector,
'html': html,
}
];
sendInstantUIUpdate(changes);
}