Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: refactored code for 404 page #65

Closed

Conversation

Anasauce
Copy link
Collaborator

better code for 404 page


render(){
// console.log("hmmmm", this.whichSadCat())
const sadCat = sadCats[ Math.floor( Math.random() * sadCats.length )]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<img src={ this.whichSadCat() } className='SadCat'/>

<img src={randomSadCat()} className='SadCat'/>

import Link from '../atoms/Link'
import './NotFoundPage.sass'
const sadCats = [ cat1, cat2, cat3, cat4 ]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const whichSadCat = () => { .... }

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

randomSadCat

@jaredatron jaredatron changed the title refactored code for 404 page WIP: refactored code for 404 page Jan 17, 2017
@jaredatron jaredatron closed this Feb 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants