Yashasvi Singh
aUnicornDev's Blog

aUnicornDev's Blog

What's New in the upcoming Vue 3 docs

What's New in the upcoming Vue 3 docs

Vue 3 docs are here and are more awesome than ever. Check out new features they have to offer!!

Yashasvi Singh's photo
Yashasvi Singh
·Feb 4, 2022·

3 min read

Table of contents

  • New Features in the Vue 3 Docs
  • API Section
  • Vue SFC(Single File Component) Playground
  • Conclusion

In addition to the Gradient Text, DARK Mode and a great responsive mobile experience, the New Vue Docs have some good really things to unpack.

In this article, we will briefly cover the MAJOR changes in different sections of the Vue 3 docs.

Switching between DARK and Light Mode

New Features in the Vue 3 Docs

The "Complete Scope" in the Introduction

The Introduction of this guide has been majorly changed.

The Introduction of previous docs began with the basics and ended on the component section and didn't mention the Single Page Application use of Vue given that most of the Apps in production use SPA.

The New Introduction starts with the basics and gives the full scope of what Vue can do.

It takes you from What Vue is, the Progressive Nature of Vue touching briefly on Single File Components and comparing the API choices provided by the Framework.

Choosing between the API

This is the most amazing feature of the docs!

For any code snippet given in the docs ,you can choose between the Options and the Composition API .

Here below, we are switching between the v-for directive code.

Switching between the Options and Composition API

A lot of refactoring

As stated by Evan You, almost 70% of the docs have been rewritten according to the whole flow.

This includes a lot of dedicated sections like

  • Vue 3 with TypeScript( with Options and Composition API)
  • A high level overview of Server Side Rendering (SSR)
  • Composables in Composition API

Tutorials Section

Instead of reading through the docs one can also learn hands on in the Tutorial section.

It starts with the basics and goes explaining all the Essentials in the Guide with a live editor.

Here you get the choice to switch between

  • Options and Composition API
  • HTML and SFC (Single File Component)

Tutorials Section

Examples Section

This section contains a list of Basic and Practical examples which were already present in the previous docs as well.

A new addition is the 7GUI project which defines Seven tasks that represent typical challenges in GUI programming.

The 7 GUI's section introduced

This section also has the option to switch between API reference and Component type.


API Section

Instead a small list of clickable items as in the https://v3.vuejs.org/api/ API section of the docs,

Previous API's Page

The new and enriched API reference section has a searchable section for the

  • Global API
  • Composition API
  • Options API
  • and more...

New API Section in the Vue 3 docs


Vue SFC(Single File Component) Playground

The playground is the same playground as used in the Tutorial and Example sections above but this one is able to persists the state in the URL.

So this can be used to share code as well as share bug reports.

The Single File Component Playground

You can even download the files from here and run them on your local system.


Conclusion

Hope you find the overview useful.

Thank for reading 😄


Did you find this article valuable?

Support Yashasvi Singh by becoming a sponsor. Any amount is appreciated!

Learn more about Hashnode Sponsors
 
Share this