- This is a memory game web application using React.
- Develop a memory game web app using React.
- Break up application's UI into components, manage component state, and respond to user events.
-
Live app @ GitHub
-
GitHub Repository
- Click on any of pictures to earn a point, but do not click on the same picure twice.
- Each time when a picture is clicked, positions of the pictures will be shuffled.
- This app can also be installed locally through the following steps
- Clone the git repository
git clone https://github.com/mmakino/clicky-game.git
- Install necessary packages
npm install
- This app uses the following NPM packages:
"gh-pages": "^2.0.1", "react": "^16.8.3", "react-dom": "^16.8.3", "react-scripts": "2.1.5"
- Start the web server
npm start
- The web page should open in a browser automatically. If it does not, try entering the following URL into the address bar to start devlopment http web server.
http://localhost:3000/
create-react-app
was used initially to start development of this app, andApp.js
andApp.css
have been modified.- The other React components such as
ClickyItem
,AppNavbar
have been added specifically for this web application.
src
├── components
│ ├── AppNavbar -- Navbar React component
│ │ ├── index.js -- Javascript for AppNavbar
│ │ └── style.css -- CSS for AppNavbar
│ ├── ClickyItemContainer -- Clickable items container
│ │ ├── ClickyItem -- Single clickable item
│ │ │ ├── index.js -- Javascript for ClickyItem
│ │ │ └── style.css -- CSS for ClickyItem
│ │ ├── ItemSrc -- Image source
│ │ │ └── index.js -- Data object for the images
│ │ ├── index.js -- Javascript for ClickyItemContainer
│ │ └── style.css -- CSS for ClickyItemContainer
│ ├── App.css -- css for the App
│ ├── App.js -- main game app page
│ └── App.test.js
├── shared
│ └── images
│ └── logo.svg
├── index.css
├── index.js
└── serviceWorker.js
7 directories, 14 files
- All the images of the players are hyperlinks at the official MLB site
- Therefore they are subject to the copyright of 2019 MLB Advanced Media, LP.