[Vuejs]-This expression is not callable for vue 2 with composition api and class component

0👍

Try the code below

import { reactive, ref, toRefs } from '@vue/composition-api';

export function userConfiguration() {
  const val = ref('');
  const breweries = reactive({ list: [] });
  const submitted = async () => {
    console.log('submitted called');
  };
  return { val, ...toRefs(breweries), submitted };
}

Leave a comment