Click in order · Vue.js course · Module 7: Props & Events

useAttrs syntax

Arrange the code for accessing attrs in script setup:

Items to click

  • const attrs = useAttrs()
  • from 'vue'
  • import { useAttrs }

You can check the correct answer by solving this task in the CodeWorlds game.