Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Part6 0 #4

Open
wants to merge 3 commits into
base: part6-0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions db.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"notes": [
{
"content": "the app state is in redux store",
"important": false,
"id": 1
},
{
"content": "state changes are made with actions",
"important": true,
"id": 2
},
{
"content": "state is stored in the backend",
"important": true,
"id": 3
},
{
"content": "Learnt mutate method of useMutation hook",
"important": true,
"id": 4
}
]
}
190 changes: 190 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
"dev": "vite",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"server": "json-server -p3001 --watch db.json"
},
"dependencies": {
"@tanstack/react-query": "^5.17.0",
"axios": "^1.6.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Loading