Simple persistent text editor in React