The 4 Phases Of Vue Component Rendering

The 4 Phases Of Vue Component Rendering

The 4 Phases Of Vue Component Rendering: init, compile, render and patch. Vue JS is simple but powerful library + framework. JavaScript developer could improve their skills by decoding the Vue code base. When we prefer to do quick prototype, we include Vue library (full build — runtime + compile) directly in html file. The downside of this approach is compile phase will be executed every time.

“The more layers you peel away, the more you cry” by saghul 😆

Vue JS is simple but powerful library + framework. JavaScript developer could improve their skills by decoding the Vue code base. Vue anatomy blog is my attempt to decode.

Vue goes through four phases

  1. init — includes initialization, beforeCreate and created lifecycle hooks
  2. compile — convert template to internal functions
  3. render — returns a virtual DOM node
  4. patch — Compares the virutal DOM with last virtual DOM and renders the delta in your browser DOM

When we prefer to do quick prototype, we include Vue library (full build — runtime + compile) directly in html file. The downside of this approach is compile phase will be executed every time.

Code written in template section will be converted into render JS function as shown below

Image for post

web-development programming javascript vue developer

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Vue.js Web App Development | Skenix Infotech

Our expert Vue.js developers follows Agile methodology that delivers high-quality & affordable Vue.js services. Hire Vue.js Developer from Skenix Infotech.

Useful Tools In Vue.js Web Development

Useful Tools In Vue.js Web Development. There are some tools that developers that are just getting started with Vue or sometimes, have experience building with Vue sometimes do not know exist to make development in Vue a lot easier.

Why Web Development is Important for your Business

With the rapid development in technology, the old ways to do business have changed completely. A lot more advanced and developed ways are ...

Important Reasons to Hire a Professional Web Development Company

    You name the business and I will tell you how web development can help you promote your business. If it is a startup or you seeking some...

Learn VUE 3 by Making a Web App ~ Composition API, Vue JS Hooks?

Learn how the new Vue JS 3 works by making a simple and easy web application to increment and decrement a numerical value using the Composition API, including Vue Ref, Vue Reactive and Vue Computed.