blob: 128ccf15e199caa8e0a804d50dafb6f2f1f5273d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { Component } from "react";
import PropTypes from "prop-types";
import Items from "../components/Items";
import Header from "../components/Header";
import Page from "../components/Page";
import withData from "../lib/withData";
const Home = props => {
const page = parseInt(props.url.query.page) || 1;
return (
<Page>
<p>Hello</p>
<Items page={page} />
</Page>
);
};
Home.propTypes = {
url: PropTypes.object
};
export default withData(Home);
|