Why Taro subcomponents cannot be rendered

Taro Zhang defines a child component. If you use this component in the parent component, it cannot be compiled at all on the Mini Program side, and the child component cannot be displayed or executed. What is the reason for this?

clipboard.png

Dec.31,2021

Fuck, in taro, only one component can be written in a js file, multiple other components can be written, and direct references will be invalid. Components must be written in another separate file before import is introduced to compile


my problem is similar to yours
I pass a value to the child component in the parent component, and then the child component cannot receive it.
parent component:
< Tab pageurl= {this.state.pageurl} / >

subcomponents:
componentDidMount () {

console.log('tab' ,this.props.pageurl)

}

Menu