A Scrimba exercise I rebuilt from scratch — a hangman-style game where every wrong guess "eliminates" a programming language. Try the game
- Guess a word letter by letter using a virtual keyboard
- Each mistake eliminates a programming language
- Full word reveal on defeat
- Confetti animation on victory 🎉
- React (hooks:
useState) clsx— conditional CSS class handlingreact-confetti— victory animation
- State management with
useStateand deriving values from state - Complex conditional rendering (nested ternaries)
- Dynamic list generation with
.map() - Conditional CSS classes with
clsx - Handling user events
- Integrating a third-party library (
react-confetti) - React best practices: avoiding side effects during render
- Layout stability (avoiding layout shift)