foundersandcoders / coursebook

The new coursebook
https://learn.foundersandcoders.com
Other
50 stars 23 forks source link

Typo in react workshop #971

Open ShaughnAnderson94 opened 6 months ago

ShaughnAnderson94 commented 6 months ago

function ChooseName() { const [name, setName] = useState("");

function updateName(event) { event.preventDefault(); setName(event.target.username.value); }

return (

Your name is: {username} //Should be name instead of username

); }

TusharAnekar commented 6 months ago

Hi @ShaughnAnderson94, I'm excited to contribute to open source for the first time and this bug seems like a great starting point. I'm having trouble locating the code related to the username in the specified file. Any guidance would be greatly appreciated!