Leanpub Header

Skip to main content

Topics

Vue.js

From templates, reactive data and directives to components, state management, the Composition API, TypeScript, testing and accessibility, Vue.js as told through the free samples of the Leanpub books about it.

Created from the free samples of 7 Leanpub books and the descriptions and tables of contents of 14 more books and courses, with every source cited.

Vue.js is a JavaScript framework for building user interfaces. The most widely sold book about it here opens with the framework's description of itself as progressive: unlike monolithic frameworks it is designed to be adopted by increments, its core library is concerned with the view layer only and is easy to combine with other libraries or with an existing project, and with modern tooling and supporting libraries it can equally drive a sophisticated single-page application.[1] The earlier edition of the same book, written for the first version, states the aim more plainly: the benefits of reactive data binding and of view components that can be composed, through an interface as simple as possible.[2]

That simplicity is the theme of nearly every book. One beginner's guide says that the learning curve is not steep at all beside those of the other frameworks,[3] another chooses Vue for a first website because its documentation is written in plain terms,[6] and a recent one lists a smaller size and a gentler curve than its competitors among its advantages.[9] The books for experienced developers take up what a simple core leaves open, such as how to keep a large code base organised, share state and test components.[5]

This article covers where to begin, the history, the core ideas, components, state and reactivity, large applications, testing and accessibility, and the uses of Vue with other technologies. Its sources are the free samples of the Leanpub books listed at the end, with the descriptions and tables of contents of the books and courses whose samples were not available, and every claim that rests on a source is cited to it.

Where to start

The framework has had three major versions, and the first question about any book is which one it teaches. For the current version the beginner's books are Vue 3: Everything you need to work as a Frontend Developer, which grows a small application chapter by chapter,[9] and Vue 3 Composition API Mastery: From Zero to Production-Ready ToDo App (2025), which builds a task manager with the tools now usual in employment.[10] For the second version, still found in many existing applications, there are The Majesty of Vue.js 2 (2017), the fullest tutorial,[1] Vue.js 2 Basics (2017), a very short one in nine chapters,[3] Vue from Scratch (2021) for absolute beginners,[11] and Practical Vue.js (2022).[12] The Majesty of Vue.js 1 (2016) covers the first version and is of historical interest.[2]

A reader with no web development at all can begin with Modern Websites with Vue.js (2023), which teaches the basics of the web before building a site.[6] Developers who know the framework have books on single subjects: Vue.js Component Patterns (2019) on the design of components,[4] Vuex Concepts (2022) on shared state,[13] Reactivity in Vue.js (2025) on the internals,[14] Testing Vue.js components with Jest (2019) on unit tests,[15] Accessible Vue (2021) on accessibility,[16] and Large Scale Apps with Vue, Vite and TypeScript (2023), with its course version, on large applications.[5][8]

History

Vue was released in 2014 by a single developer who wanted the declarative templates of the large frameworks of the time in something much lighter. Version 1.0 followed in 2015, version 2 in 2016, with a faster rendering engine, and version 3 in 2020, rewritten in TypeScript and bringing a second way of writing components, the Composition API, in which logic is grouped by concern in functions and not by kind in an object of options. The tooling changed with it, from a command-line tool built on a bundler to a faster build tool by the framework's own author, and the official library for shared state was replaced by a simpler one.

The shelf spans the whole of this. The Majesty of Vue.js 1 describes Vue in 2016 as a library and expressly not a full framework,[2] and its second edition, a year later, calls it a progressive framework and reprints the remarks of early adopters: that it could be sprinkled onto one page or used to build an advanced application, that it felt as natural in a page rendered by a server as in a single-page application, and, from a designer who had been put off by the terminology of the others, that it was the first such framework that could be understood.[1] The authors came to it through a project of their own, found few resources beyond the official guide, wrote the book from what they had learned, and rewrote every example when the second version came out.[1] The description of Testing Vue.js components with Jest calls Vue the most popular framework of 2018.[15] The books of 2023 and after assume the third version, TypeScript and the newer tools,[5] and History of JavaScript Frameworks (2024) sets the whole succession of frameworks in order, asking why there are so many and observing that many developers feel fatigued by them.[17]

The core ideas

A Vue application binds data to a template: the page is described once, in HTML with a few added attributes called directives, and the framework keeps it in step with the data as the data changes. Vue.js 2 Basics presents this in nine short chapters, each awarding a belt from white to black, and begins with the two ways of installing the framework. The first is a single script tag in a page; the second uses a command-line tool that generates a project with a bundler and a development server. The book uses the first throughout, to keep things simple, and tells readers puzzled by the second that the surrounding tools can be learned later. From there it goes to the root instance, the object with which an application starts, and the options passed to it: one names the element of the page to which the instance attaches, another holds the data, which may be text, numbers, lists or other objects and is then available throughout the application, and others are functions that the framework calls at stages in the instance's life, when it has been created, attached, updated or destroyed. Binding, forms and computed properties follow.[3]

The Majesty of Vue.js 2 is written informally, for anyone who has met the usual front-end tools and wants a light and simple framework, and proceeds from interactivity and the handling of events through components and custom events to the consumption of a web interface and the building of larger applications with a router. Most chapters end with an exercise, on the principle that the best way to learn code is to write it, with hints and solutions supplied. Its first chapter is on events. Events are things that happen to the elements of a page, a field changed, a button clicked or a form submitted, and a directive attaches a listener for one of them to an element; the example is a button that counts votes, first with the increment written in the attribute itself and then moved into a method, a named block of code defined on the instance, before the chapter builds a small calculator.[1] Vue from Scratch starts with the smallest possible application, builds a list of tasks with the framework included directly, and then rebuilds it with the command-line tool and single-file components.[11] Practical Vue.js covers binding, lists, events, filters, directives and forms and finishes with a blog.[12]

Components

Vue.js Component Patterns introduces components through one example, a card showing a picture with a title. Written as plain markup under a root instance, the card works and cannot be reused without copying. Made into a component, by moving its markup into a template and registering it under a name, it can be placed on a page as many times as wanted, and the book remarks how notable it is that markup, styling and code are wrapped up together. The card is then made flexible with props, the attributes through which a parent passes data in, and given state of its own, a count of likes. The state is declared as a function that returns an object, so that every instance of the component keeps an independent copy. The distinction that follows is the heart of the matter: props are a component's input parameters, while state is internal and hidden from whoever uses the component, so that it can be renamed or reworked without breaking the user's code. The last step is the reverse channel, custom events by which a child sends messages to its parent.[4]

The rest of that book is on patterns for reuse, among them slots, components without markup of their own, and the provision of data to distant descendants.[4] Vue 3: Everything you need to work as a Frontend Developer describes a component as a small piece of code and an application as components grouped into more complex ones, and covers the blocks of a single-file component.[9]

State and reactivity

When several components need the same data, passing it down through props and up through events becomes laborious, and the answer is a store outside the components. Vuex Concepts is a short account of the library long used for this, which its description calls an architecture for centralised state, inspired by two earlier designs but simpler and built to take advantage of the framework's reactivity; the book explains when a store is worth having and walks through one example with state, the mutations that change it, actions and derived values.[13] Vue 3 Composition API Mastery: From Zero to Production-Ready ToDo App uses the store that has since replaced it, in an application with routing, filtering, sorting and forms.[10]

Reactivity in Vue.js goes beneath all of this. Vue is known for declarative rendering, in which the developer states what the interface should be for given data, and the mechanism that makes it work is the reactivity system, which ensures that a change in data appears in the interface. The book begins with the functions through which the Composition API exposes that system and then examines how changes are tracked and the page updated.[14]

Large applications

Large Scale Apps with Vue, Vite and TypeScript is a guide to front ends that can grow into a large code base and stay organised. Its practices are listed at the start: components developed in isolation, against a client for the server that can supply either live data or imitation data; a central manager of state divided into modules by area of the application; translation and the formatting of numbers and dates for different cultures; type-checking during development to reduce faults at run time; conventions for directories, files and names; reusable logic in composable functions; libraries of components; and unit tests for models and components. It is for developers of intermediate or advanced skill, assumes familiarity with the terminal and the package manager, and does not teach TypeScript itself, only how to enforce types with it.[5] The same material is offered as a course in lessons.[8]

The same author's An Opinionated Introduction to Micro-frontends, an adjacent book, divides a front end into independently built parts, an arrangement it considers especially useful where several teams work on different features of one application; its container loads parts written in three frameworks, Vue among them. The method in both books is to write code that works first and then to rework it repeatedly towards something clearer and easier to extend.[7]

Testing and accessibility

Testing Vue.js components with Jest starts from the difficulty of unit testing in frameworks built of components: components are connected to one another and the browser adds a layer of its own, yet each must be tested in isolation, by a suite that is reliable and fast. The book works through the rendering of a component, its styles and structure, props and custom events, computed properties and watchers, and methods with imitation dependencies.[15]

Accessible Vue covers the core concepts of accessibility in web applications and their implementation in the second and third versions of the framework: the management of focus, accessible base components, common widgets such as dialogs and menus, regions that announce their changes, and routing that assistive technology can follow.[16]

Vue with other technologies

Modern Websites with Vue.js uses Vue to build static websites, for readers who may be marketers or owners of businesses. It gives a brief history of the front end, from pages of text through graphics, style sheets and the arrival of the smartphone, and an argument against the most widely used content management system: constant updates, insecure extensions and slow pages. Its alternative is the architecture of JavaScript in the browser, reusable interfaces and markup built in advance. On the choice of framework it says that everything depends on the project, and that for a simple site a library that beginners can pick up is enough.[6]

Vue is often the front end of an application whose back end is something else. Full-Stack Laravel 13 and Inertia 3: Build real applications from scratch with Vue 3 builds applications in a PHP framework with Vue components in place of server templates,[18] Growing Your Own WebApp with Phoenix And Vue (2020) builds, tests and deploys shop software with a framework in Elixir behind a Vue front end in TypeScript,[19] and Introduction to full stack web development with Go and Vue.js (2024), an introduction to full-stack development for students and professionals, pairs a back end in Go with Vue.[20] Getting started with Vue Native (2025) is on a tool for writing mobile applications in Vue; its description says candidly that the tool was obsolete when the book was written, and that the book remains as a reference.[21]

Questions about Vue.js

Which Vue.js book should I start with?

The framework has had three major versions, and the first question about any book is which one it teaches. For the current version the beginner's books are Vue 3: Everything you need to work as a Frontend Developer, which grows a small application chapter by chapter, and Vue 3 Composition API Mastery: From Zero to Production-Ready ToDo App (2025), which builds a task manager with the tools now usual in employment.[9][10] For the second version, still found in many existing applications, The Majesty of Vue.js 2 (2017) is the fullest tutorial.[1]

What does it mean that Vue is a progressive framework?

The Majesty of Vue.js 2 (2017) opens with the framework's description of itself: unlike monolithic frameworks it is designed to be adopted by increments.[1] Its core library is concerned with the view layer only and is easy to combine with other libraries or with an existing project, and with modern tooling and supporting libraries it can equally drive a sophisticated single-page application.[1] Early adopters quoted in the book said that it could be sprinkled onto one page or used to build an advanced application.[1]

How do I install Vue?

Vue.js 2 Basics (2017) begins with the two ways: a single script tag in a page, or a command-line tool that generates a project with a bundler and a development server.[3] The book uses the first throughout, to keep things simple, and tells readers puzzled by the second that the surrounding tools can be learned later.[3] The tooling has changed since the version that book teaches, from a command-line tool built on a bundler to a faster build tool by the framework's own author.

What is the difference between props and state in a Vue component?

Vue.js Component Patterns (2019) draws the distinction: props are a component's input parameters, the attributes through which a parent passes data in, while state is internal and hidden from whoever uses the component.[4] State can therefore be renamed or reworked without breaking the user's code.[4] It is declared as a function that returns an object, so that every instance of the component keeps an independent copy.[4]

What is the Composition API?

The Composition API is the second way of writing components that arrived with version 3 in 2020, in which logic is grouped by concern in functions and not by kind in an object of options. Reactivity in Vue.js (2025) begins with the functions through which the Composition API exposes the framework's reactivity system, and then examines how changes are tracked and the page updated.[14]

When does a Vue application need a store?

When several components need the same data, passing it down through props and up through events becomes laborious, and the answer is a store outside the components. Vuex Concepts (2022) is a short account of the library long used for this, which explains when a store is worth having and walks through one example with state, the mutations that change it, actions and derived values.[13] Vue 3 Composition API Mastery: From Zero to Production-Ready ToDo App (2025) uses the store that has since replaced it.[10]

Sources

Every source is a Leanpub book or course. The note after each says which part of it was read; where no sample was available, only the public description and table of contents were used.

  1. 1.
    The Majesty of Vue.js 2, Alex Kyriakidis, Evan You Free sample: the introduction, with the overview of Vue and the account of the book, and the opening of the first chapter. 2017. Free sample: PDF · EPUB
  2. 2.
    The Majesty of Vue.js 1, Alex Kyriakidis, Evan You Free sample: the introduction to the edition written for the first version of Vue. 2016. Free sample: PDF · EPUB
  3. 3.
    Vue.js 2 Basics, Tony Lea: Learn the Basics of Vue.js Free sample: the introduction and the first chapter, on installation. 2017. Free sample: PDF · EPUB
  4. 4.
    Vue.js Component Patterns, Frederik Dietz Free sample: the opening chapter, which builds one component step by step. 2019. Free sample: PDF · EPUB
  5. 5.
    Large Scale Apps with Vue, Vite and TypeScript, Damiano Fusco: Build Large and Scalable front-ends that leverage component isolation, internationalization, localization, a modular state manager, component Libraries, API-client code that easily can switch between mocked data and live data and more. Free sample: the overview, the prerequisites and the start of the first chapter; the preface is withheld. 2023. Free sample: PDF · EPUB
  6. 6.
    Modern Websites with Vue.js, Salie Lim Free sample: the introduction and the chapter on modern front-end development. 2023. Free sample: PDF · EPUB
  7. 7.
    An Opinionated Introduction to Micro-frontends, Damiano Fusco: with React, Vue, and Svelte Free sample: the preface, on the book's goal, audience and method. 2026. Free sample: PDF · EPUB
  8. 8.
    Course: Large Scale Apps with Vue, Vite and TypeScriptCourse, Damiano Fusco: Build Large and Scalable front-ends that leverage component isolation, internationalization, localization, a modular state manager, component Libraries, etc No sample text (the download failed): from the description and outline of the course. 2023.
  9. 9.
    Vue 3: Everything you need to work as a Frontend Developer, Andrés Cruz Yoris: Here you continue your route in developing web applications with Vue No sample: from the description. 2026.
  10. 10.
    Vue 3 Composition API Mastery: From Zero to Production-Ready ToDo App, Roberto Stepic No sample: from the description. 2025.
  11. 11.
    Vue from Scratch, Ajdin Imsirovic: A friendly guide for absolute beginners No sample: from the description and table of contents. 2021.
  12. 12.
    Practical Vue.js, Daniel Schmitz, Daniel Pedrinha Georgii No sample: from the description and table of contents. 2022.
  13. 13.
    Vuex Concepts, Daniel Schmitz, Daniel Pedrinha Georgii: The Flux Application Architecture for Vue.js No sample: from the description and table of contents. 2022.
  14. 14.
    Reactivity in Vue.js, Lars Devocht: Learn the basics and explore the core. No sample: from the description and table of contents. 2025.
  15. 15.
    Testing Vue.js components with Jest, Alex Jover Morales: A concise guide to testing Vue.js components using Jest and the official library vue-test-utils No sample: from the description and table of contents. 2019.
  16. 16.
    Accessible Vue, Marcus Herrmann: The Why and How of building inclusive apps with Vue.js No sample: from the description and table of contents. 2021.
  17. 17.
    History of JavaScript Frameworks, Nicklas Envall No sample: from the description and table of contents. 2024.
  18. 18.
    Full-Stack Laravel 13 and Inertia 3: Build real applications from scratch with Vue 3, Andrés Cruz Yoris: Here continue your roadmap in the development of web applications in Laravel with Inertia The free sample is front matter and an index: from those and the description. 2026. Free sample: PDF
  19. 19.
    Growing Your Own WebApp with Phoenix And Vue, Joseph Varghese No sample: from the description and table of contents. 2020.
  20. 20.
    Introduction to full stack web development with Go and Vue.js, Emanuele Panizzi, Enrico Bassetti The free sample stops before the chapter on Vue: from the description and table of contents. 2024. Free sample: PDF
  21. 21.
    Getting started with Vue Native, Andrés Cruz Yoris: Your journey in mobile app development with Vue begins here No sample: from the description. 2025.

Further reading

Other books in the library on neighbouring ground, not cited above.

  • Laravel 13 from scratch: Full Stack web development with Vue 3 and Tailwind CSS, Andrés Cruz Yoris: Real Full Stack Web Development with Vue 3, Tailwind CSS, REST API, Role Management with Spatie, and Testing with Pest An introduction to a PHP framework, with one chapter that consumes its interface from Vue. 2026. Free sample: PDF
  • Laravel 5.4 For Beginners, Bill Keck A step-by-step book on an older version of a PHP framework, with later chapters on Vue. 2017.
  • Laravel 5.3 For Beginners, Bill Keck The edition of the same book for the previous version. 2017.
  • Serverless Saas, Christopher Franklin: Building Affordable, Performant, and Scalable Services An early-access guide to a serverless application with a Vue front end. 2018.
  • The JavaScript Interview Bible 2023, Nezir Zahirovic: A Comprehensive Guide with 1000+ Essential Questions and Answers! A collection of JavaScript interview questions that touches many frameworks. 2023.

This is an article created from the free samples of 7 Leanpub books and the descriptions and tables of contents of 14 more books and courses. We're building these articles to provide you, the Leanpub reader, with a good jumping-off point to discover more Leanpub books that are interesting and relevant to you. We never use material which is paid-only when building these articles: we only use material which is already free on Leanpub. However, Leanpub authors can opt out from inclusion in articles from their book settings page.

Updated November 2026.

In the Leanpub store: 46 books · 1 courses in the Vue.js category

All topics