Fix React Task Refresh

Job ID: 39963855

Budget: $2 – $8 USD

I built a small MERN Task Manager. A new task is saved to MongoDB correctly through Axios, yet it only shows up after a manual browser refresh. I need you to track down the React-side culprit—whether that’s a missing setState call, an untracked dependency in useEffect, or anything else—then patch it so the freshly added task renders immediately.

You’ll work only on the frontend; the Express API and Mongo collections are stable. Please test your fix end-to-end and make sure nothing else changes in the app’s behaviour or styling.

Deliverables:
• Updated React file (likely App.js or the component that owns the tasks array)
• A brief 2-to-3-line note explaining what broke and how you resolved it