Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 7 months ago

Hangman game using React, TS, Mantine, Valtio FSM, Motion

motion, react, typescript, vite
Josh Javier•950
@joshjavier
A solution to the Hangman game challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I'm really proud of the overall flow and organization of this project -- starting with the repo setup, using merge-rebase strategy for feature branches to keep my main development branch clean, and working on a small chunk of work at a time to keep problems manageable and easy to solve. I've had some practice working collaboratively with my "innie" (to borrow the term from Severance) since I sometimes work on different features in my home and work computers.

What challenges did you encounter, and how did you overcome them?

I've had some struggles with implementing exit animations with Motion's AnimatePresence, but taking a break helped me solve it with a fresh mind (solution: adding a unique key prop to direct children).

There's also a limitation with text gradients and text stroke not working when used at the same time, so I had to decide which one to use (I chose to retain the stroke around white text) to get the UI looking as close as possible to the designs.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Josh Javier's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License