SlideShare a Scribd company logo
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
Hi! I’m Chris
I’m a Lead Developer at Newsquest Digital Media
based in Glasgow.
I’ve been a Developer for 22 years.
I have worked in digital agencies, startups and
large corporate companies as well as working on
interesting projects for fun.
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
About Newsquest
We are one of the largest regional news
publishers in the UK.
●
More than 165 news brands
●
Over 40 magazines, published in print and
online.
●
Almost 30 million users a month online
●
Six million readers a week in print
In addition to our local news brands, we also own:
●
s1
●
Exchange & Mart
●
Newsquest Specialist Media
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
Choosing Vue.js
2 years ago, following a developer shoot-out with
various front-end frameworks. We decided to use
Vue.js as the framework for a re-engineering of our
existing Jobs Manager Portal.
What we loved
●
Excellent documentation and community
●
Excellent development tools
●
Pro-active core team
●
Painless learning curve
●
Hot Reloading
●
Single File Components
●
Vuex State Management
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
2 Years on...
2 years on, our decision to adopt Vue.js has really
paid off. We have a large, high performance
application which is a pleasure to develop on every
day.
Some of the benefits we’ve experienced
●
Very fast render times
●
Less code duplication thanks to shared components
●
ES6+ features (Async/Await, Spread etc)
●
Easy to refactor and improve
●
Simplified product design processes
●
Reduced debug time by using shared actions
●
Happy developers
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
1. Planning
Application Level
●
How is the application structured ?
●
Do we want to use a UI framework ?
●
Do we need multiple application routes ?
●
Do we need to manage application state ?
●
Do we need authentication ?
●
Do we need to communicate with APIs ?
●
Do we need to validate form data ?
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
1. Planning
Component Level
●
What are the common components in the application ?
●
How will our components communicate ?
●
Will our components share state ?
●
Can we use third party components ?
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
2. State Management
What is state?
State is just an object that contains the properties
which we want to be shared within our application.
For a very simple stand-alone component, state
management is generally not required.
For applications which contain multiple components
that share state, state management becomes very
important.
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
2. State Management
Props Down / Events Up (Prop Drilling)
●
Parent component holds application state
●
Parent component sends data by props to it’s child
●
Child components emit events to the parent
●
Parent component handles API calls to store data
While this does technically work, prop drilling is not a
very scalable way of managing state.
As the number of components grows, the number of
props down, events up communications grows.
That’s no fun… There must be a better way!
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
2. State Management
Vuex
“Vuex is a state management pattern + library for
Vue.js applications. It serves as a centralized store
for all the components in an application, with rules
ensuring that the state can only be mutated in a
predictable fashion.”
●
State: Holds application data.
●
Actions: Used for asynchronous tasks and for
orchestrating multiple mutations.
●
Mutations: Synchronously modify the state.
●
Getters: Used to access values derived from the
state.
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
2. State Management - Vuex
Benefits
●
Predictable state
●
All components communicate with the store in the
same way
●
Components react to changes in the store
●
Fully integrated into Vue Dev Tools
●
Time travel through mutations history
●
Easier to debug
●
Easy to view the current state of the application
●
Helper functions like mapGetters, mapActions,
mapMutations and mapState reduce lines of code
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
2. State Management
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
3. Performance Tweaks
Lazy Loading Routes
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
3. Performance Tweaks
Lazy Loading Components
Beyond Hello World: Real World Vue.js Development Tips
Chris Finnigan – Lead Developer @ Newsquest Digital Media
Thanks For Listening!
Feel free to get in touch on:
Twitter: @chrisfdev
LinkedIn: https://www.linkedin.com/in/chris-finnigan-b870bb1a/
Email: chris.finnigan@newsquest.co.uk
Ad

Recommended

MOKA .Net Study Outline
MOKA .Net Study Outline
Aliencube Consulting
 
Delivering GOV.UK: DevOps for the Nation
Delivering GOV.UK: DevOps for the Nation
C4Media
 
Guntis Smaukstelis (MightyFingers) @ TechHub Riga Meetup
Guntis Smaukstelis (MightyFingers) @ TechHub Riga Meetup
TechHubRiga
 
Power to the people the rewards for complete trust - steve stopps
Power to the people the rewards for complete trust - steve stopps
Mary Chan
 
Scaling UA activity - the challenges of growth
Scaling UA activity - the challenges of growth
GameCamp
 
Meteor - building an email client
Meteor - building an email client
nextbuild
 
Enterprise Blockchain Developer Experience
Enterprise Blockchain Developer Experience
Mofizur Rahman
 
WeCodeFest: kubernetes and google container engine codelab
WeCodeFest: kubernetes and google container engine codelab
Laura Morillo-Velarde Rodríguez
 
Case Study: How Marriott International Employs a Content-Driven Global Extran...
Case Study: How Marriott International Employs a Content-Driven Global Extran...
Amanda Tevis
 
Case Study: How Marriott International Employs a Content-Driven Global Extran...
Case Study: How Marriott International Employs a Content-Driven Global Extran...
Crafter Software
 
Universal Apps Development using HTML 5 and WINJS
Universal Apps Development using HTML 5 and WINJS
Alexandre Marreiros
 
From Code to Deployment: The Full Stack Developer’s Journey
From Code to Deployment: The Full Stack Developer’s Journey
uncodemy
 
My portfolio
My portfolio
Asad Khan 👨🏻‍💻
 
Most Common Tools in Full Stack Development
Most Common Tools in Full Stack Development
Zoople Technologies
 
Delivering Best Apps with Efficiency
Delivering Best Apps with Efficiency
WSO2
 
5 Important Considerations For Mobile Application Development Process
5 Important Considerations For Mobile Application Development Process
Algoworks Inc
 
Corporate Brochure Tekriti Software
Corporate Brochure Tekriti Software
ashishgupta97065
 
Hybrid Development Webinar - English
Hybrid Development Webinar - English
CollabNet
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2
 
InfiniteSoft Presentation
InfiniteSoft Presentation
Uliana Kozhevnikova
 
Code to Cloud: Three Trends for Faster, Safer Continuous Delivery
Code to Cloud: Three Trends for Faster, Safer Continuous Delivery
VMware Tanzu
 
Draftkings: Launching w/ Confidence at Scale, FutureStack17 NYC
Draftkings: Launching w/ Confidence at Scale, FutureStack17 NYC
New Relic
 
BitCraft 2017 general presentation
BitCraft 2017 general presentation
Michal Wasilewski
 
Leading Web App Specialists for Tailored Solutions Web Application Developme...
Leading Web App Specialists for Tailored Solutions Web Application Developme...
Systango
 
Real Estate Management System ppt presentation
Real Estate Management System ppt presentation
amazon20prime22
 
SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...
SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...
Sencha
 
Resume_AdityaKumar-1
Resume_AdityaKumar-1
Aditya Kumar
 
Offline First in React Native
Offline First in React Native
Josh Warwick
 
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 

More Related Content

Similar to Beyond Helloworld - Real World Vue.js Development Tips (20)

Case Study: How Marriott International Employs a Content-Driven Global Extran...
Case Study: How Marriott International Employs a Content-Driven Global Extran...
Amanda Tevis
 
Case Study: How Marriott International Employs a Content-Driven Global Extran...
Case Study: How Marriott International Employs a Content-Driven Global Extran...
Crafter Software
 
Universal Apps Development using HTML 5 and WINJS
Universal Apps Development using HTML 5 and WINJS
Alexandre Marreiros
 
From Code to Deployment: The Full Stack Developer’s Journey
From Code to Deployment: The Full Stack Developer’s Journey
uncodemy
 
My portfolio
My portfolio
Asad Khan 👨🏻‍💻
 
Most Common Tools in Full Stack Development
Most Common Tools in Full Stack Development
Zoople Technologies
 
Delivering Best Apps with Efficiency
Delivering Best Apps with Efficiency
WSO2
 
5 Important Considerations For Mobile Application Development Process
5 Important Considerations For Mobile Application Development Process
Algoworks Inc
 
Corporate Brochure Tekriti Software
Corporate Brochure Tekriti Software
ashishgupta97065
 
Hybrid Development Webinar - English
Hybrid Development Webinar - English
CollabNet
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2
 
InfiniteSoft Presentation
InfiniteSoft Presentation
Uliana Kozhevnikova
 
Code to Cloud: Three Trends for Faster, Safer Continuous Delivery
Code to Cloud: Three Trends for Faster, Safer Continuous Delivery
VMware Tanzu
 
Draftkings: Launching w/ Confidence at Scale, FutureStack17 NYC
Draftkings: Launching w/ Confidence at Scale, FutureStack17 NYC
New Relic
 
BitCraft 2017 general presentation
BitCraft 2017 general presentation
Michal Wasilewski
 
Leading Web App Specialists for Tailored Solutions Web Application Developme...
Leading Web App Specialists for Tailored Solutions Web Application Developme...
Systango
 
Real Estate Management System ppt presentation
Real Estate Management System ppt presentation
amazon20prime22
 
SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...
SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...
Sencha
 
Resume_AdityaKumar-1
Resume_AdityaKumar-1
Aditya Kumar
 
Offline First in React Native
Offline First in React Native
Josh Warwick
 
Case Study: How Marriott International Employs a Content-Driven Global Extran...
Case Study: How Marriott International Employs a Content-Driven Global Extran...
Amanda Tevis
 
Case Study: How Marriott International Employs a Content-Driven Global Extran...
Case Study: How Marriott International Employs a Content-Driven Global Extran...
Crafter Software
 
Universal Apps Development using HTML 5 and WINJS
Universal Apps Development using HTML 5 and WINJS
Alexandre Marreiros
 
From Code to Deployment: The Full Stack Developer’s Journey
From Code to Deployment: The Full Stack Developer’s Journey
uncodemy
 
Most Common Tools in Full Stack Development
Most Common Tools in Full Stack Development
Zoople Technologies
 
Delivering Best Apps with Efficiency
Delivering Best Apps with Efficiency
WSO2
 
5 Important Considerations For Mobile Application Development Process
5 Important Considerations For Mobile Application Development Process
Algoworks Inc
 
Corporate Brochure Tekriti Software
Corporate Brochure Tekriti Software
ashishgupta97065
 
Hybrid Development Webinar - English
Hybrid Development Webinar - English
CollabNet
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2
 
Code to Cloud: Three Trends for Faster, Safer Continuous Delivery
Code to Cloud: Three Trends for Faster, Safer Continuous Delivery
VMware Tanzu
 
Draftkings: Launching w/ Confidence at Scale, FutureStack17 NYC
Draftkings: Launching w/ Confidence at Scale, FutureStack17 NYC
New Relic
 
BitCraft 2017 general presentation
BitCraft 2017 general presentation
Michal Wasilewski
 
Leading Web App Specialists for Tailored Solutions Web Application Developme...
Leading Web App Specialists for Tailored Solutions Web Application Developme...
Systango
 
Real Estate Management System ppt presentation
Real Estate Management System ppt presentation
amazon20prime22
 
SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...
SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...
Sencha
 
Resume_AdityaKumar-1
Resume_AdityaKumar-1
Aditya Kumar
 
Offline First in React Native
Offline First in React Native
Josh Warwick
 

Recently uploaded (20)

AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
Fwdays
 
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
 
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
 
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
Fwdays
 
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
 
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
 
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
Ad

Beyond Helloworld - Real World Vue.js Development Tips

  • 1. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media
  • 2. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media Hi! I’m Chris I’m a Lead Developer at Newsquest Digital Media based in Glasgow. I’ve been a Developer for 22 years. I have worked in digital agencies, startups and large corporate companies as well as working on interesting projects for fun.
  • 3. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media About Newsquest We are one of the largest regional news publishers in the UK. ● More than 165 news brands ● Over 40 magazines, published in print and online. ● Almost 30 million users a month online ● Six million readers a week in print In addition to our local news brands, we also own: ● s1 ● Exchange & Mart ● Newsquest Specialist Media
  • 4. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media Choosing Vue.js 2 years ago, following a developer shoot-out with various front-end frameworks. We decided to use Vue.js as the framework for a re-engineering of our existing Jobs Manager Portal. What we loved ● Excellent documentation and community ● Excellent development tools ● Pro-active core team ● Painless learning curve ● Hot Reloading ● Single File Components ● Vuex State Management
  • 5. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media 2 Years on... 2 years on, our decision to adopt Vue.js has really paid off. We have a large, high performance application which is a pleasure to develop on every day. Some of the benefits we’ve experienced ● Very fast render times ● Less code duplication thanks to shared components ● ES6+ features (Async/Await, Spread etc) ● Easy to refactor and improve ● Simplified product design processes ● Reduced debug time by using shared actions ● Happy developers
  • 6. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media 1. Planning Application Level ● How is the application structured ? ● Do we want to use a UI framework ? ● Do we need multiple application routes ? ● Do we need to manage application state ? ● Do we need authentication ? ● Do we need to communicate with APIs ? ● Do we need to validate form data ?
  • 7. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media 1. Planning Component Level ● What are the common components in the application ? ● How will our components communicate ? ● Will our components share state ? ● Can we use third party components ?
  • 8. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media 2. State Management What is state? State is just an object that contains the properties which we want to be shared within our application. For a very simple stand-alone component, state management is generally not required. For applications which contain multiple components that share state, state management becomes very important.
  • 9. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media 2. State Management Props Down / Events Up (Prop Drilling) ● Parent component holds application state ● Parent component sends data by props to it’s child ● Child components emit events to the parent ● Parent component handles API calls to store data While this does technically work, prop drilling is not a very scalable way of managing state. As the number of components grows, the number of props down, events up communications grows. That’s no fun… There must be a better way!
  • 10. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media 2. State Management Vuex “Vuex is a state management pattern + library for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion.” ● State: Holds application data. ● Actions: Used for asynchronous tasks and for orchestrating multiple mutations. ● Mutations: Synchronously modify the state. ● Getters: Used to access values derived from the state.
  • 11. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media 2. State Management - Vuex Benefits ● Predictable state ● All components communicate with the store in the same way ● Components react to changes in the store ● Fully integrated into Vue Dev Tools ● Time travel through mutations history ● Easier to debug ● Easy to view the current state of the application ● Helper functions like mapGetters, mapActions, mapMutations and mapState reduce lines of code
  • 12. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media 2. State Management
  • 13. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media 3. Performance Tweaks Lazy Loading Routes
  • 14. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media 3. Performance Tweaks Lazy Loading Components
  • 15. Beyond Hello World: Real World Vue.js Development Tips Chris Finnigan – Lead Developer @ Newsquest Digital Media Thanks For Listening! Feel free to get in touch on: Twitter: @chrisfdev LinkedIn: https://www.linkedin.com/in/chris-finnigan-b870bb1a/ Email: [email protected]