Евгения Акиншина 02aed8655d first commit | 3 anni fa | |
---|---|---|
public | 3 anni fa | |
src | 3 anni fa | |
.DS_Store | 3 anni fa | |
.gitignore | 3 anni fa | |
README.md | 3 anni fa | |
package-lock.json | 3 anni fa | |
package.json | 3 anni fa | |
tsconfig.json | 3 anni fa |
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.