jquery - How do I structure data for POST from form in ReactJS? -
i have basic react component contact form issues post api endpoint (using django rest framework). endpoint handles actual sending, , such. i'm using jquery handle ajax business -- know overkill; removed later -- can't seem grok how structure values form in component submission endpoint. here's component: var contactform = react.createclass({ getinitialstate: function() { return { name: '', email: '', message: '', url: '', }; }, handlenamechange: function (e) { this.setstate({name: e.target.value}) }, handleemailchange: function (e) { this.setstate({email: e.target.value}) }, handlemessagechange: function (e) { this.setstate({message: e.target.value}) }, handleurlchange: function (e) { this.setstate({url: e.target.value}) }, handleformsubmit: function (e) { e.preventdefault(); var name = this.state.name.trim(); var email = this.state.email.trim(); v...