DEV Community

Discussion on: Hooks are coming to Vue.js version 3.0

Collapse
 
antontsvil profile image
Anton T

What would you return from the Hooks method if you were planning on using multiple hooks? An array of hooks? Like
return [clickedHook(), otherHook()]

Collapse
 
pierresaid profile image
pierresaid

Something like that ?
return {...clickedHook(), ...otherHook()}