-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New island example #1807
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
New island example #1807
Conversation
Co-authored-by: Sarah Rainsberger <[email protected]>
src/pages/en/tutorial/6-islands/1.md
Outdated
| || **Same**: They both show the same HTML elements and look the same initially. Different: The component with the `client:load` directive will rerender after the page is loaded, and any interactive elements that it has will work. || | ||
| 3. If you couldn't see your website's code, only the live published page, how would you tell which `<SvelteCounter />` component used `client:visible`? | ||
| 3. Assume the `SvelteCounter` component shows a number and has a button to increase it. If you couldn't see your website's code, only the live published page, how would you tell which of the two `<SvelteCounter />` component used `client:load`? |
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.
If you want to change this to client:load then be sure to change it in the code sample too! It doesn't look like that was changed.
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.
Oops, I'd experimented with that, but decided to keep it the way it is! Fixed
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.
Did you fix this? It didn't change here. 😅
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.
🤦 should be changed now!
|
LGTM Dan! |
As discussed, removed the second Preact example and made the first one interactive with a button.