Dec
3
6 hours ago
started
started time in 1 hour ago
started
started time in 1 hour ago
started
started time in 1 hour ago
Activity icon
issue

Royalchampion issue comment facebook/react

Royalchampion
Royalchampion

req.body is showing me object in reverse order.

Hey,

I was building a To-do list web app using mern stack with redux. I created a simple form to enter the data but while sending post data to the backend I'm facing difficulty. My form textfield area name is 'task' (E.g. ) and I'm passing let's say 'jonas' as the value. Everythin on the front-end is working fine but in the backend when I console the req.body in post method callback function, I do get {jonas: ' '} as the value. Why is this happening? I mean it should have been {task: 'jonas'}, right? Do you think is there something wrong with passing data from the front-end? I debugged it but it can't be helped. No stack overflow pages have its answers anyway. :(

Please someone help me with this thing. I'm stuck on this problem for last two days. I could have shared the code screenshots but the codebase is really huge.

started
started time in 2 hours ago
started
started time in 3 hours ago
started
started time in 3 hours ago
started
started time in 3 hours ago
started
started time in 3 hours ago
started
started time in 3 hours ago