React component for a div with editable contents