kuanhsuh
4/27/2017 - 4:50 AM

react snippet

react snippet

const { post } = this.props;

if(!post){
return <div></div>;
}

To deal with undefined props