Skip to content

Comments

Justin Lowry: Apple-Nav#246

Open
jlowry42 wants to merge 6 commits intobloominstituteoftechnology:masterfrom
jlowry42:master
Open

Justin Lowry: Apple-Nav#246
jlowry42 wants to merge 6 commits intobloominstituteoftechnology:masterfrom
jlowry42:master

Conversation

@jlowry42
Copy link

No description provided.

Copy link

@szincone szincone left a comment

Choose a reason for hiding this comment

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

Really good project. The Nav bar is identical to the apple one. Code is really clean and all very efficient. I remember having to resort to a lot of 'hacky' techniques to get React-Router to work for me in the beginning and you seem to have a very strong understanding of react-router at this stage.

import styled from 'styled-components';
import {NavLink} from 'react-router-dom';

const StyledNav = styled(NavLink)`

Choose a reason for hiding this comment

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

Good job incorporating styled components. I wasn't a believer in them at first but I'm a big fan now, the more I use them the more I like them.

`;

const Nav = props => {
return <StyledNav to={`/${props.name}`}>{props.name}</StyledNav>;

Choose a reason for hiding this comment

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

Good job making your links dynamic.

render={props => <SubNav {...props} subLinks={d.subLinks} />}
/>
))}
<h2>The Same Stuff, But Twice As Expensive!</h2>

Choose a reason for hiding this comment

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

Preach it!

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