[Vuejs]-What is the correct way to pass props (Vue/React)? Pass object or each prop separately?

0πŸ‘

βœ…

To minimize re-rendering could be good the send the props separately, depends if some of that props are going to be updated more often.

If you want to pass them the props separately but still want to not have to write the props separately, you can use the spread notation:

<SolocatorHeader {..title} {...desc} />   

Leave a comment