Skip to content

Supriya : Week5 Assignment#12

Open
supriyapuri wants to merge 16 commits into
frontend-application-development-uw20:masterfrom
supriyapuri:master
Open

Supriya : Week5 Assignment#12
supriyapuri wants to merge 16 commits into
frontend-application-development-uw20:masterfrom
supriyapuri:master

Conversation

@supriyapuri
Copy link
Copy Markdown

Week 5 HW Submission

Please fill out the information below in order to complete your assignment. Feel free to update this comment later if necessary.

  • Comfort rating on this assignment (1-5): 3
  • Completion rating on this assignment: Assignment requirements complete. Did not add the component snapshot test.

@supriyapuri supriyapuri changed the title Supriya : Week3 Assignment Supriya : Week5 Assignment May 22, 2020
<Switch>
<Route path ="/" exact component ={Home} />
<Route exact path ="/characters" component= {Characters} />
<Route path= "/characters/:char_id" component= {CharacterDetails} />
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
<Route path= "/characters/:char_id" component= {CharacterDetails} />
<Route path= "/characters/:charId" component= {CharacterDetails} />

js variables are typically camelCase

<Route path= "/episodes/:ep_id" component= {EpisodeDetails} />


<Route path = "*" component ={NotFound} />
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice!

isFavorite:true,
})
}
localStorage.setItem("favCharacters", JSON.stringify(favorites));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice! Cool feature.

const updatedDate= new Date(details.created).toLocaleString('en-US');

return (
<div className= "char_details">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

classNames are typically hyphen-separated

))}
</ul>

<Pagination
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice!

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