egoist/vue-client-only

[Question] How does it work with a real component that has to be imported?

educob opened this issue · 0 comments

Hi.

I have tried to find a real exmample and the only one is with a comments component not imported anywhere.

Whow does this work with a real component that has to be imported?

Some like:

<tamplate> ...
  <client-only>
    <realcomponent />
  </client-only>
...


<script>
import ClientOnly from 'vue-client-only'
import realcomponent from 'realcmponent'
...

components: {
  ClientOnly,
  realcomponent,
}

Thanks.