Answers for "nuxt client-only component"

-1

nuxt client-only component

<template>
  <div>
  	<client-only>
  		<apexchart />
  	</client-only>
  </div>
</template>
export default {
    componennts: {
    apexchart: () => (process.client ?
                      import('vue-apexcharts')
                      : Promise.resolve({ render: (h) => h('div') })),
    }
}
Posted by: Guest on October-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language