Files
ReactWeather/app/components/Examples.jsx

28 lines
603 B
JavaScript

var React = require('react');
var {Link} = require('react-router');
// var Examples = React.createClass({
// render: function () {
// return (
// <h3>Examples Component</h3>
// );
// }
// });
var Examples = (props) => {
return (
<div>
<h1 className="text-center">Examples</h1>
<p>Here are a few example locations to try out:</p>
<ol>
<li>
<Link to='/?location=newyork'>New York, NY</Link>
</li>
<li>
<Link to='/?location=Rio'>Rio, Brazil</Link>
</li>
</ol>
</div>
)
};
module.exports = Examples;