1
0
mirror of https://github.com/mgerb/react-starter synced 2026-01-12 01:52:49 +00:00

formatting

This commit is contained in:
2017-08-26 21:23:05 -05:00
parent cc0be44b54
commit 689d1b4df0
10 changed files with 115 additions and 133 deletions

View File

@@ -3,36 +3,45 @@ import { NavLink } from 'react-router-dom';
import './Navbar.scss';
interface Props {
}
interface Props {}
interface State {
}
interface State {}
export default class Navbar extends React.Component<Props, State> {
constructor(props: Props) {
super(props);
}
constructor(props: Props) {
super(props);
}
render() {
return (
<div className="Navbar">
<div className="Navbar__header">
<span>React Starter</span>
<a href="https://github.com/mgerb/react-webpack2-seed">
GitHub
<i className="fa fa-github" aria-hidden="true" />
</a>
</div>
render() {
return (
<div className="Navbar">
<div className="Navbar__header">
<span>React Starter</span>
<a href="https://github.com/mgerb/react-webpack2-seed">GitHub
<i className="fa fa-github" aria-hidden="true"/>
</a>
</div>
<div className="Navbar__nav">
<NavLink to="/" className="Navbar__item" exact activeClassName="Navbar__item--active">Home</NavLink>
<NavLink to="/new" className="Navbar__item" exact activeClassName="Navbar__item--active">New</NavLink>
</div>
</div>
);
}
<div className="Navbar__nav">
<NavLink
to="/"
className="Navbar__item"
exact
activeClassName="Navbar__item--active"
>
Home
</NavLink>
<NavLink
to="/new"
className="Navbar__item"
exact
activeClassName="Navbar__item--active"
>
New
</NavLink>
</div>
</div>
);
}
}