👉🏻 This article will introduce you to the improvements and development experiences brought by Volar 2.0, which is the official the official Vue.js VSCode extension .
👉🏻 A Vue 3 based smooth signature drawing component.
🔥 Vue Tip: Enforce Section Order & Component API Style
Daniel Kelly recently shared two interesting ESLint rules on X.
Let's start with vue/component-api-style which aims to make the API style you use to define Vue components consistent in your project. By default it only allows script setupscript setup and Composition API.
The rule would mark the following code as an error:
👉🏻 At eleven years old, ESLint is preparing itself for another eleven years by continuing to evolve into a language-agnostic linter that anyone can write plugins for.
Read this on my blog We made it to 200! Thanks for reading and supporting me over the last few years, it means a lot to me. Tomorrow is the last day of the Composable Design Patterns course launch and the 35% off discount. If you were hoping to pick it up, don't forget to check it out! As always, I've got some tips and links for you, and a new podcast episode. Enjoy, and have a great week! — Michael 🔥 Default Content with Slots You can provide fallback content for a slot, in case no content is provided: < !-- Child.vue --> < template > < div > < slot > Hey! You forgot to put something in the slot! < / slot > < / div > < / template > This content can be anything, even a whole complex component that provides default behaviour: < !-- Child.vue --> < template > < div > < slot name = "search" > < !-- Can...
If you're using Vue 3, you're probably using composables. But other than using VueUse where you can, how do you get the most out of them? Over the past few years I've been slowly putting together a list of patterns and best practices for how to write composables in the best way. I've spent hours reading the source code of VueUse (one of the best — but most time-consuming — ways to learn it). I've read articles, listened to talks, and written lots and lots of my own code. I ended up with 15 different patterns, and each one will help you to write better composables. I've condensed and put all of these composables together into a course — Composable Design Patterns. Get Composable Design Patterns now. Because this is the launch, it's on sale for 35% off until Thursday. For each of the 15 patterns in this course, you'll get: A concise overview that tells you when and how to use it, along with variations and edge cases ...
This is your last chance to get Composable Design Patterns with the great 35% off launch discount! Maybe you've been on vacation, maybe you've been busy with work or with life and haven't seen my previous emails. But now is your final opportunity to learn and master composables in Vue for a really fantastic price. Get Composable Design Patterns now . And if you decide you don't want it, I hope you'll stick around for the free content I send out each week in my newsletter. Have a great weekend! — Michael Unsubscribe | Update your profile | 8 Queen St N, Kitchener, ON N2H2G8
评论
发表评论