Евгения Акиншина 02aed8655d first commit | 3 سال پیش | |
---|---|---|
public | 3 سال پیش | |
src | 3 سال پیش | |
.DS_Store | 3 سال پیش | |
.gitignore | 3 سال پیش | |
README.md | 3 سال پیش | |
package-lock.json | 3 سال پیش | |
package.json | 3 سال پیش | |
tsconfig.json | 3 سال پیش |
To run the app -
In the project directory, you can run:
npm install
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
A React TS application that is used to play the memory game with the help of useReducer
I have use useReducer, useEffect and useState to save the states. These are called Hooks (such as a useReducer hook) they store the recent addition to React that enable more of your components to be written as functions by providing less complex alternatives to class features. One significant advantage is that typing function components in TypeScript is simpler and more direct.