外参检查
1. import
import PropTypes from 'prop-types';
2. member variable
App.propTypes = {
title: PropTypes.number.isRequired,
};
The code on the Github.
外参检查
1. import
import PropTypes from 'prop-types';
2. member variable
App.propTypes = {
title: PropTypes.number.isRequired,
};
The code on the Github.