React component not re-rendering after state update using useState with dynamic keys
👀 Views: 2
💬 Answers: 1
📅 Created: 2025-06-06
react useState re-rendering
I have a functional React component that uses the `useState` hook to manage an object where the keys are dynamic based on user input. However, after updating th...