1 2 3 4 5 6 7 8 9 10 11 12
import withData from '../lib/withData'; import Page from '../components/Page'; import SingleItem from '../components/SingleItem'; const ItemPage = props => ( <Page> <p>I'm the item url!</p> <SingleItem id={props.url.query.itemId} /> </Page> ); export default withData(ItemPage);