Form component for React that submits its contents via ajax.