A subscriber sent me a junior react interview challenge, let’s solve it



00:00 – Introduction
01:23 – Building the Component and Passing Data
02:25 – Displaying Buttons for Each Country and Capital
03:51 – Randomizing the Array
05:11 – Setting Button Background Color to Blue
08:07 – Removing Buttons on Wrong Pair Selection
11:59 – Resetting Background Color and Buttons on Wrong Selection
16:45 – Checking if Game is Over
21:55 – Exporting the Component
26:33 – Refactoring and Code Cleanup
31:35 – Summary and Conclusion

📘 T3 Stack Tutorial: https://1017897100294.gumroad.com/l/jipjfm
🤖 SaaS I’m Building: https://www.icongeneratorai.com/
✂️ Background Cutter: https://www.backgroundcutter.com/

💬 Discord: https://discord.gg/4kGbBaa
🔔 Newsletter: https://newsletter.webdevcody.com/
📁 GitHub: https://github.com/webdevcody
📺 Twitch: https://www.twitch.tv/webdevcody
🤖 Website: https://webdevcody.com
🐦 Twitter: https://twitter.com/webdevcody

source

You May Also Like