mirror of
https://github.com/Raghu-Ch/ReactWeather.git
synced 2026-02-10 19:13:03 -05:00
28 lines
603 B
JavaScript
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;
|