Refactoring an App 1/2: Creating a Composable @LachlanMiller
Refactoring an App 1/2: Creating a Composable  @LachlanMiller
Uploaded April 2021 | Updated November 2026, 3 hours ago
In part 1 of 2, we explore a calculator app built with Vue 3 and Tailwind by Lucas Santos. We make a small refactor by moving the bulk of the logic into a composable, and talk about why this might be a good idea.

Calculator on Lucas' GitHub: github.com/lucas-santosp/calculator

😇 If you enjoy advanced content, I wrote a book "Design Patterns for Vue.js" lachlan-miller.me/design-patterns-for-vuejs
👉 $5 off with the code "YT_5_OFF"

I also made a beginner's course "Complete Vue.js 3". vuejs-course.com/complete-vuejs

👉 BUY ON GUMROAD $10 OFF WITH "YOUTUBE_10": gumroad.com/l/complete-vuejs
👉 BUY ON UDEMY: udemy.com/course/complete-vuejs-3-crash-course-composition-api-vue-router-vuex/?referralCode=765A6E679914BF6E60AF

I hope you find the content useful! 👊 Happy coding ⚡️
Refactoring an App 1/2: Creating a ComposableWriting to a PDF [Vue 3 Custom Renderers 4/7][Testing Composables with Tic Tac Toe] Some Defensive Programming (9/10)Typesafe GraphQL and Vue 5/9 - GraphQL models with Nexus Decorators[Vue.js 3 Crash Course] 1.4: Control Flow with v-if and v-elseHeadless UI 1.0 is out! Building React and Vue Components with Tailwind CSSTyping the TypeScript InterviewTypesafe GraphQL and Vue 6/9 - Top Level Query with NexusDOM Queries - [Vue Testing Library 1/8][Functional Core, Imperative Shell] Introduction and Goals (1/8)Vuex 5 Preview[Testable Forms] 1.9 Rendering Validation Errors
Lachlan Miller |

Refactoring an App 1/2: Creating a Composable

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER