-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Update "Fragments & Multiple Elements" examples #778
Conversation
✅ Deploy Preview for astro-docs-2 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
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.
I thought we decided to keep the fragment wrapping example? The reason being that without the <></>
this code breaks if you leave out the wrapping ()
which is less easy for people to spot as important when following this example.
We can probably relax the phrasing to be less insistent (“must” etc.) though.
You're right! It's a good example in and of itself. I'll bring it back in, with less strong wording. Thoughts on the added example re: good use of |
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.
Took the liberty of trying to write the changes as suggestions. Please feel free to cut/edit/ignore as appropriate 🙌
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Changes incorporated, @delucis ! Care to take another once-over and see how it looks altogether? |
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Fixes #369
This updates our Muliple Elements example to avoid telling people they MUST use a wrapping element when they don't have to.
Further adds an example of using Fragment to show when it might be useful to do so, since they don't appear to be necessary.