Skip to main content

Venkata Subash

Frontend Developer

Welcome to my corner of the internet. I’m a frontend developer who builds web applications with Vue.js, Nuxt, React, and TypeScript. Here I write about the things I work with and the patterns I find useful.

Recent

Vue.js 3: Getting Started with the Composition API

Introduction # Vue 3 introduced the Composition API, a new way to write component logic that feels natural and flexible. If you’re coming from Vue 2’s Options API, it might seem unfamiliar at first, but it’s actually quite intuitive once you understand the basics. In this post, we’ll explore what the Composition API is, why you might want to use it, and how to get started with practical examples.

Understanding Vue 3 Reactivity: Refs vs Reactive

·4 mins
Introduction # Vue 3’s reactivity system is powerful, but it can be confusing when you’re first learning about ref() and reactive(). Both are essential for creating reactive state, but they’re used in different situations. Let’s clarify when and how to use each one. Reactivity Basics # At its core, Vue’s reactivity system uses JavaScript Proxies to detect changes to your data and update the DOM accordingly. When you modify a reactive value, Vue automatically re-renders any components that depend on it.

Nuxt.js File-Based Routing: Building Scalable Applications

Introduction # One of Nuxt.js’s most powerful features is its file-based routing system. Instead of manually defining routes in a configuration file, Nuxt automatically generates routes based on your file and folder structure. This makes your project more organized and scales beautifully as your application grows. How File-Based Routing Works # In Nuxt, every .vue file in the pages/ directory automatically becomes a route. This is inspired by frameworks like Next.js and is one of the reasons Nuxt is so developer-friendly.

Nuxt.js Server Routes and API Endpoints: Build Full-Stack Apps

Introduction # One of Nuxt.js’s greatest strengths is that it’s a full-stack framework. You can build both your frontend and backend in the same project. Nuxt server routes let you create API endpoints without leaving your Vue.js application, eliminating the need for a separate backend server. What Are Server Routes? # In Nuxt, any file in the server/routes/ directory automatically becomes an API endpoint. Similarly, files in server/api/ are automatically prefixed with /api/.