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

feat: new starter example #2870

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

leweyse
Copy link

@leweyse leweyse commented Dec 17, 2024

Summary

New starter example

Check List

  • pnpm run prettier for formatting code and docs

image

Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
jotai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 18, 2024 9:31am

Copy link

codesandbox-ci bot commented Dec 17, 2024

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.

Copy link
Member

@dai-shi dai-shi left a 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
Copy link
Member

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",
Copy link
Member

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" />
Copy link
Member

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.

Copy link

pkg-pr-new bot commented Dec 18, 2024

Open in Stackblitz

More templates

npm i https://pkg.pr.new/jotai@2870

commit: b8e96a7

Copy link

LiveCodes Preview in LiveCodes

Latest commit: b8e96a7
Last updated: Dec 17, 2024 2:02pm (UTC)

Playground Link
React demo https://livecodes.io?x=id/9HX7TNQSX

See documentations for usage instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants