-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
docs: svelte $props.id
#2327
base: main
Are you sure you want to change the base?
docs: svelte $props.id
#2327
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…into docs/svelte-props-id
📝 Description
Recommends
$props.id
in examples⛳️ Current behavior (updates)
Everywhere
"1"
is used as an ID, this will obviously conflict if the examples are taken literally, Svelte now exposes$props.id
, we should recommend users to use that (similar touseId
in React).🚀 New behavior
Adds
$props.id
to the docs💣 Is this a breaking change (Yes/No):
No
📝 Additional Information
See: https://svelte.dev/docs/svelte/$props#$props.id()