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 (
{name}
{issb?'是':'不'}
);
}
}
export default Clock4;