import React from 'react'
import PropTypes from 'prop-types';
class Clock4 extends React.Component {
static propTypes = {
name:PropTypes.string.isRequired,
issb:PropTypes.bool.isRequired
}
static defaultProps = {
name: '女',
issb: true
}
state = {
list: []
}
render() {
console.log(PropTypes)
const {name,issb} =this.props
return (
<div className='cinema-list-wrap'>
{name}
{issb?'是':'不'}
</div>
);
}
}
export default Clock4;