Vue 3 - Responsive Composition API

1 year ago
18

Vue 3 TypeScript - Responsive Composition API

- Getting Started
- Build an application to automatically detect mobile or web
- Show different pages according to the device
- Overview of Tasks and Goals using Composition API
- Use Composition API to monitor screen size changes
- Use reactive to monitor browser and device size
- Use reactive state to monitor sizes and return if it’s mobile or larger
- Add Event Listener to monitor resize changes
- Live Coding
- Cloning responsive GitHub starter and final project
- Create Composable useMonitorSize function
- Run the Application and resize the browser window to watch the appropriate Mobile or Web page displayed
- Summary
- You learned to use Composition API to monitor screen size changes
- You used the Composable function to monitor screen size changes
- You used the reactive state to monitor sizes and return if it’s mobile or larger
- You used Event Listener to monitor resize changes
- Thank you

GitHub link:
https://github.com/JediPixels/responsive

Twitter:
https://twitter.com/JediPixels

Looking for Updates:
https://JediPixels.dev

#vuejs #vue3 #typescript #responsivewebdesign

Loading comments...