Skip to content

Use destructuring to access createApp, etc. in render-function.md #803

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

Merged

Conversation

skirtles-code
Copy link
Contributor

This is part of #773. The objective is to make more of the examples agnostic to whether they're using a CDN or ESM build. render-function.md is one of the pages where the Vue. prefix is most conspicuous so I've started there.

The first example still includes the global Vue but it is destructured on the first line to resemble an import. Most of the other examples are code fragments so that line is omitted. I have included it whenever a new global function is introduced, to make it clear where it comes from.

Many of the examples just show an isolated render function, which makes it tricky to also show the destructuring. I wasn't sure how best to show that, so I included a commented ellipsis. It's a little clunky but it was the best idea I had.

I haven't explicitly acknowledged the difference between the builds on this page. That might be added later but I'm unclear precisely how I'm going to approach that on other pages yet.

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