1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import { Component } from 'react'; import UpdateItem from '../components/UpdateItem'; import Page from '../components/Page'; import PleaseSignIn from '../components/PleaseSignIn'; class Home extends Component { render() { return ( <Page> <PleaseSignIn> <UpdateItem id={this.props.router.query.id} /> </PleaseSignIn> </Page> ); } } export default Home;