Tech Mahindra MERN Stack Mid

Explain useState and useEffect with a real example.

useState holds UI state; useEffect runs side effects after paint. ShopNest cart badge: const [count,setCount]=useState(0); useEffect loads cart count once on mount.

Tech Mahindra rounds often probe: Full-stack JS/.NET.

Themes commonly reported in public MNC interview experiences (AmbitionBox / LinkedIn / Glassdoor-style). Practice aloud; keep answers this short in the real round.

More Tech Mahindra MERN Stack questions

All MERN Stack questions
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details