V
V
Vladimir Golub2019-10-17 11:41:59
Vue.js
Vladimir Golub, 2019-10-17 11:41:59

How to correctly set the type and default value in functional components?

I want to set the default type and value in functional components ?
My attempt but doesn't seem to work:

export default {
        functional: true,
        name: "TariffItem",
        props: [{
            title: {
                type: String,
                default: ''
            }
        }],
    }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question