Navigation.js (987B)
1 /** 2 * React Starter Kit (https://www.reactstarterkit.com/) 3 * 4 * Copyright © 2014-present Kriasoft, LLC. All rights reserved. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE.txt file in the root directory of this source tree. 8 */ 9 10 import React from 'react'; 11 import cx from 'classnames'; 12 import withStyles from 'isomorphic-style-loader/lib/withStyles'; 13 import s from './Navigation.css'; 14 import Link from '../Link'; 15 16 class Navigation extends React.Component { 17 render() { 18 return ( 19 <div className={s.root} role="navigation"> 20 <Link className={s.link} to="/about">About</Link> 21 <Link className={s.link} to="/contact">Contact</Link> 22 <span className={s.spacer}> | </span> 23 <Link className={s.link} to="/login">Log in</Link> 24 <span className={s.spacer}>or</span> 25 <Link className={cx(s.link, s.highlight)} to="/register">Sign up</Link> 26 </div> 27 ); 28 } 29 } 30 31 export default withStyles(s)(Navigation);