jd-opensource / jd-opensource/taro-ui

TypeError: Super expression must either be null or a function

Open
#1,185 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

**问题描述**

**复现步骤**

```js
import React, { Component } from 'react'
import Taro from '@tarojs/taro'
import { View } from '@tarojs/components'
import { AtTabs, AtTabsPane } from 'taro-ui'

export default class Index extends Taro.Component {
constructor (props) {
super(props)
this.state = {
current: 0,
}
}
state = {
current: 0,
}
handleClick (value) {
this.setState({
current: value
})
}
render () {
const tabList = [{ title: '标签页1' }, { title: '标签页2' }, { title: '标签页3' }]
return (


标签页一的内容


标签页二的内容


标签页三的内容


)
}
}

```

**期望行为**

**报错信息**

**系统信息**

**补充信息**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.