🚀 𝗥𝗼𝗮𝗱𝗺𝗮𝗽 𝗳𝗼𝗿 𝗙𝗿𝗲𝘀𝗵𝗲𝗿𝘀: 𝗛𝗼𝘄 𝘁𝗼 𝗖𝗿𝗮𝗰𝗸 𝗬𝗼𝘂𝗿 𝗙𝗶𝗿𝘀𝘁 ...
Your original stays safe. React needs new arrays for state. Do not mutate state. Replace state with a new array. Use setTodos ( [ ...todos, newTodo ]). Remember these points: - Const does not mean ...