A soft electronic device built to mimic a brain synapse repairs itself after being cut in half, recovering most of its electrical function and memory within a day. Each capability exists separately.