mirror of
https://github.com/Raghu-Ch/ReactWeather.git
synced 2026-02-10 03:03:01 -05:00
28 lines
991 B
JavaScript
28 lines
991 B
JavaScript
var React = require('react');
|
|
var {Link, IndexLink} = require('react-router');
|
|
|
|
// var Nav = React.createClass({
|
|
// render: function (){
|
|
// return (
|
|
// <div>
|
|
// <h2>Nav Component</h2>
|
|
// <IndexLink to="/" activeClassName="active" activeStyle={{fontWeight: 'bold'}}> Get Weather</IndexLink>
|
|
// <Link to="/about" activeClassName="active" activeStyle={{fontWeight: 'bold'}}> About</Link>
|
|
// <Link to="/examples" activeClassName="active" activeStyle={{fontWeight: 'bold'}}> Examples</Link>
|
|
// </div>
|
|
// );
|
|
// }
|
|
// });
|
|
|
|
var Nav = () => {
|
|
return (
|
|
<div>
|
|
<h2>Nav Component</h2>
|
|
<IndexLink to="/" activeClassName="active" activeStyle={{fontWeight: 'bold'}}> Get Weather</IndexLink>
|
|
<Link to="/about" activeClassName="active" activeStyle={{fontWeight: 'bold'}}> About</Link>
|
|
<Link to="/examples" activeClassName="active" activeStyle={{fontWeight: 'bold'}}> Examples</Link>
|
|
</div>
|
|
);
|
|
};
|
|
module.exports = Nav;
|