Props definition
MichalMotuz opened this issue · 1 comments
MichalMotuz commented
How can I write Props definition by this way?
e.g.
props: {
prop1: {
type: Number
},
...
}
MichalMotuz commented
I found solution!
const Comp1 = ({props}) => {
...
}
Comp1.props = {
prop1: {
type: Number
}
}
export default Modules