Use < script > to quote react.js to report an error

as shown in the picture, I cited react.js and babel.js directly in the page to report errors on the Internet to check whether it seems to be using es5 or es6. Is there a big god who has encountered this situation to point out the complete code of the component as follows

    class UserLeft extends React.Component {
        constructor(props) {
            super(props)
            this.state={
                rangePickerValue: getTimeDistance("year")
            }
        }
        isActive(type) {
            const { rangePickerValue } = this.state;
            const value = getTimeDistance(type);
            if (!rangePickerValue[0] || !rangePickerValue[1]) {
                return;
            }
            if (
                rangePickerValue[0].isSame(value[0], "day") &&
                rangePickerValue[1].isSame(value[1], "day")
            ) {
                return "currentColor";
            }
        }
        selectDate = type => {
            this.setState({
                rangePickerValue: getTimeDistance(type),
            });

            
        }
        handleRangePickerChange = rangePickerValue => {
            this.setState({
                rangePickerValue,
            });
        }
        render() {
            const salesExtra = (
                <div className="salesExtraWrap">
                    <div className="salesExtra">
                        <a className={this.isActive("today")} onClick={() => this.selectDate("today")}>
                            
                        </a>
                        <a className={this.isActive("week")} onClick={() => this.selectDate("week")}>
                            
                        </a>
                        <a className={this.isActive("month")} onClick={() => this.selectDate("month")}>
                            
                        </a>
                        <a className={this.isActive("year")} onClick={() => this.selectDate("year")}>
                            
                        </a>
                    </div>
                    <RangePicker
                        value={this.state.rangePickerValue}
                        onChange={this.handleRangePickerChange}
                        style={{ width: 256 }}
                    />
                </div>
            );
            return (
                <div>
                    <Tabs tabBarExtraContent={salesExtra} size="large" tabBarStyle={{ marginBottom: 24 }}>
                        <TabPane tab="" key="sales">
                            <div className="">
                                <div id="visitValue"></div>
                            </div>
                        </TabPane>
                        <TabPane tab="" key="views">
                            <div className="">
                                <div id="visitPeople"></div>
                            </div>
                        </TabPane>
                    </Tabs>
                </div>
            )
        }
    }
Mar.21,2021

this is warning , which means that you use the getDefaultProps method in the component, and this method can only be used in React.createClass , but not in class component . Please use the static member defaultProps instead, like this

.
class UserLeft extends Component {
    // ...

}

UserLeft.defaultProps = {
    key:value
}

brute force elimination, comment the code snippets one by one to see which block reports an error.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e47d2b-441a8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e47d2b-441a8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?