##源码
import React, { Component } from 'react';
class Ceshi extends Component {
props = {
title: '这是默认的title属性值'
}
render(){
console.log(this.props);
return <b>{this.props.title}</b>
}
}
export default Ceshi;
// 组件调用方式
// <Ceshi title="设置的标题" />
##报错信息
warning.js:44Warning: Ceshi(…): When calling super() in Ceshi
, make sure to pass up the same props that your component’s constructor was passed.warning
不太明白是什么原因造成的,求助!!!