luwanquan/babel-preset-vca-jsx

Props definition

MichalMotuz opened this issue · 1 comments

How can I write Props definition by this way?

e.g.

props: {
   prop1: {
      type: Number
   },
   ...
}

I found solution!

const Comp1 = ({props}) => {
   ...
}

Comp1.props = {
   prop1: {
      type: Number
   }
}

export default Modules