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