Back to Browse

How to Build a 3D Card Memory Game in React

1.9K views
Nov 28, 2023
27:18

🚀 Dive into the world of React with this simple and fun tutorial! In this session, I guide you through the process of building a captivating Memory Game using React. Learn how to manage state, handle user interactions with onClick events, implement engaging CSS for a 3D card flip effect, and fetch cat images from an API to create two versions of cards. Whether you're a React beginner or looking to enhance your skills, this tutorial offers a hands-on experience to elevate your understanding of state management, event handling, and creative styling. Join me in creating a fun and interactive Memory Game that combines programming prowess with aesthetic appeal! View full code in action on CodeSandbox: https://codesandbox.io/p/sandbox/memory-game-2xztx5 Find code from this video in my Github repo: https://github.com/alekspopovic/memory-game Link to CSS used in project: https://github.com/alekspopovic/memory-game/blob/main/src/styles/MemoryGame.css StackOverflow link for the shuffle algorithm: https://stackoverflow.com/questions/2450954/how-to-randomize-shuffle-a-javascript-array Music in the video is from StreamBeats collection by Harris Heller. Blog: https://aleksandarpopovic.com/blog/ Github: https://github.com/alekspopovic/ Twitter: https://twitter.com/alekswritescode/ Instagram: https://www.instagram.com/aleks.popovic/ Chapters: 0:00​ Intro 0:56 Project setup 2:07 App.css 2:42 Items 4:36 Shuffle 5:09 MemoryGame Component 7:04 MemoryGame.css 11:50 State 12:40 Flip class 15:28 handleClick function 22:20 Remaining cards UI 23:48 Moves counter 24:08 Adding images 26:36 Outro #react #javascript #tutorial #webdevelopment #webdesign #programming #programmer #html #css #project #coding

Download

0 formats

No download links available.

How to Build a 3D Card Memory Game in React | NatokHD