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?
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?
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)
}
Previous: The problem that go returns json
how does taro get components the original Mini Program is through onReady: function () { this.ecComponent = this.selectComponent( -sharpmychart-dom-bar ); }, obtained but Taro does not support ...
taro started h5 when reporting this error, checked a lot of information, can not find a solution, there is a big god encountered this problem code? UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be ...
View layer: <View className= list > { list.map((v, i) => ( <AtCard note= Tips extra= title={v.title} thumb={v.image} key={v.id} data-id={v.id} id onClick={this....
problem description taro developed WeChat Mini Programs, how to realize full screen function with < LivePlayer > what result do you expect? look forward to clicking the full screen button to fill the full screen, click the exit button to restore t...