Soft electronic devices and robots heal themselves without manual intervention.