Answer the question
In order to leave comments, you need to log in
What is *propTypes* type checking, what is it for? How to use in reality?
Good time! Guys need help, ran into this code
class PageContainer extends PureComponent {
render() {
const {
children,
} = this.props;
return (
<section className='PageContainer'>
{children}
</section>
);
}
}
PageContainer.propTypes = {
children: PropTypes.node,
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question