Weekly Vue.js News - #51 - Global Store On The Vue App Instance
Hi 👋
I'm on our honeymoon for the next two weeks 🌴
In this issue, I have curated a few interesting articles and tweets to help you in your journey to become a Vue expert.
Have a great week ☀️
Vue Tip: Define component name with
Vue provides globalProperties
on the app instance, an object that can be used to register global properties:

msg
can be accessed on any component instance inside the application:

As with anything global, this should be used sparingly. If your app state is too complex, it's better to use Pinia.
Vue Articles
👉🏻 New documentation
👉🏻 Create Vite Starter Templates
👉🏻 Dev & Build Improvements
👉🏻 Bundle Size Reduction
👉🏻 Upgrades to Vite Core
👉🏻 and more...
👉🏻 Vue 2.7 is out, and now Vue 2 is end-of-lifing.
👉🏻 What new features does Vue 2.7 have?
👉🏻 What does Vue 3 have that Vue 2 doesn't?
👉🏻 Visualize Vue.js component relationships and communication channels, i.e. props, events and slots.
👉🏻 This tool operates on the command line and is made for developers.
JavaScript Tip: Check if an object is empty
We can use the built-in Object.keys
method to check for an empty object.

Web Development Articles
Understanding the exclamation mark in TypeScript
👉🏻 This article explains what the TS exclamation mark is and some popular use cases
👉🏻 It also shows the downsides and alternatives using the exclamation mark in TypeScript
Why we should verify HTTP response bodies, and why we should use zod for this
Tim shows in this how he wrote a solution to verify that response bodies have the desired contract.
My Wonderful HTML Email Workflow
👉🏻 This article describes a system for creating HTML emails.
👉🏻 The system converts Markdown and custom React components into HTML that can be pasted into a newsletter tool.
🧵 A thread of clever CSS tricks
👉🏻 This Twitter thread contains several CSS tricks used by companies like Apple, Tesla, Airbnb, and Nike.
👉🏻 It links to examples and explanations of how the code works.
Quote of the week

Tools & Misc
Test drive over 100 programming fonts online in your browser.
A compiled-away, type-safe, readable RegExp alternative