-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
feat: new starter example #2870
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on it. It generally looks good.
And I noticed several issues in existing examples.
|
||
## Set up on codesandbox | ||
|
||
Link: https://githubbox.com/pmndrs/jotai/tree/main/examples/starter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohhh, we should fix this. All of ./examples/*/README.md
. Let me see.
"devDependencies": { | ||
"@types/react": "^18.2.0", | ||
"@types/react-dom": "^18.2.0", | ||
"@vitejs/plugin-react-swc": "^3.5.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aslemammad What do you think about using this instead of plugin-react in other examples?
@@ -0,0 +1 @@ | |||
/// <reference types="vite/client" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticed other examples have react-app-env.d.ts
which is wrong.
commit: |
|
Playground | Link |
---|---|
React demo | https://livecodes.io?x=id/9HX7TNQSX |
See documentations for usage instructions.
Summary
New starter example
Check List
pnpm run prettier
for formatting code and docs