Video Sponsors: Get 70% off NordPass at https://nordpass.com/aniakubow or use the code aniakubow for the SummerKickOff Sale. Plus, you get an additional month for FREE!
In this video I show you how to code Rock Paper Scissors in React! This is a continuation from my '3 ways to code Rock Paper Scissors in JavaScript' video.
You can find the final code here: https://github.com/kubowania
⭐ In most videos I use Tabnine as my A.I autocompletion tool. You can download it for free here: http://bit.ly/tabnine-top-tool
⭐ You can get a blockchain domain with my affiliate link here: http://bit.ly/get-a-crypto-domain
⭐ If you would like to buy me a coffee, well thank you very much that is mega kind! : https://www.buymeacoffee.com/aniakubow
⭐ Sign up for weekly coding tips from my newsletter partnership: https://bit.ly/JS-tips
You can also find me on:
- Twitter: https://twitter.com/ania_kubow
- Instagram: https://instagram.com/aniakubow
Top comments (6)
Hi Ania, I tried to improve upon your code by converting the switch statement to an object. That has led to a much concise length of code plus the flexibility of being able to make changes to the object and the core logic for determining a win, lose, or a draw infinitely easier...
Thanks for sharing this Eric! I can't watch the video as its private :(
Sorry, I just realized I didn't publish it, and actually this is the first youtube video I've ever made. Please let me know what you think about the code, I'm wildly optimistic about having met the requirement of the paper_scissors_rock game.
Oh wow I LOVE that approach!! So cool to see how you have taken the game and applied your own style of coding to it. Very professional :)
Thanks :)
Nice tutorial, easy to follow.