// Typedef the props.
/**
* @typedef HomeProps
* @property {string} test Display text.
*/
/**
* @description
* @param {HomeProps} props The props passed in by Parent.
*/
function Home(props) {
return <div />;
}
/**
* @description
* @param {Home.propTypes} props The props passed in by Parent.
*/
function Home(props) {
return <div />;
}
Home.propTypes = {
test: Proptypes.string.isRequired
};
...
Published © 2017 Mavega™
Version 4.3.5