Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Ashcon Khoubyari
Ashcon Khoubyari
12,907 Points

TypeError: props.toggleConfirmation is not a function

Looking for a solution as the code I've written is identical I believe but when I click "is confirmed" I receive this error

TypeError: props.toggleConfirmation is not a function handleConfirmation src/MainContent/GuestList/index.js:18 15 | name={guest.name} 16 | isConfirmed ={guest.isConfirmed} 17 | isEditing={guest.isEditing}

18 | handleConfirmation={() => props.toggleConfirmation(guest.id)} 19 | handleToggleEditing={() => props.toggleEditing(guest.id)} 20 | setName={text => props.setName(text, guest.id)} 21 | handleRemove={() => props.removeGuest(guest.id)}

let me know how i can better diagnose this issue.

Thank you

Check out how to format code in the "markdown cheat sheet" just below add an answer, please repost you formatted code.