Skip to content

Instantly share code, notes, and snippets.

@Porter97
Created April 9, 2020 14:25
Show Gist options
  • Save Porter97/28b5154cd08edfc0b09f59302c025adf to your computer and use it in GitHub Desktop.
Save Porter97/28b5154cd08edfc0b09f59302c025adf to your computer and use it in GitHub Desktop.
#...
import NotFound from './NotFound';
#...
class Profile extends Component {
#...
render() {
const profile = this.props.profile;
if (profile.errors) {
return (
<NotFound />
);
}
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment