Skip to content

Commit

Permalink
Fix: update examples (#2883)
Browse files Browse the repository at this point in the history
* fix: update readme (examples)

* fix: update relevant dependencies

* Apply suggestions from code review

---------

Co-authored-by: Daishi Kato <[email protected]>
  • Loading branch information
leweyse and dai-shi authored Dec 22, 2024
1 parent 1d5ba26 commit 36062fb
Show file tree
Hide file tree
Showing 35 changed files with 5,940 additions and 4,083 deletions.
12 changes: 6 additions & 6 deletions examples/hacker_news/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hacker News [![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?style=flat-square&logo=codesandbox)](https://githubbox.com/pmndrs/jotai/tree/main/examples/hacker_news)
# Hacker News [![Open in StackBlitz](https://img.shields.io/badge/Open%20in-StackBlitz-blue?style=flat-square&logo=stackblitz)](https://stackblitz.com/github/pmndrs/jotai/tree/main/examples/hacker_news)

## Description

Expand All @@ -10,15 +10,15 @@ Demonstrate a news articles with jotai, hit next to see more articles.
git clone https://github.com/pmndrs/jotai

# install project dependencies & build the library
cd jotai && yarn
cd jotai && pnpm install

# move to the examples folder & install dependencies
cd examples/hacker_news && yarn
cd examples/hacker_news && pnpm install

# start the dev server
yarn start
pnpm dev
```

## Set up on codesandbox
## Set up on `StackBlitz`

Link: https://githubbox.com/pmndrs/jotai/tree/main/examples/hacker_news
Link: https://stackblitz.com/github/pmndrs/jotai/tree/main/examples/hacker_news
6 changes: 3 additions & 3 deletions examples/hacker_news/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
"dependencies": {
"@react-spring/web": "^9.2.3",
"html-react-parser": "^1.2.6",
"jotai": "^2.0.4",
"jotai": "^2.10.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@vitejs/plugin-react": "^4.0.0",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "^5.0.0",
"vite": "^4.0.0"
"vite": "^6.0.5"
}
}
Loading

0 comments on commit 36062fb

Please sign in to comment.