Skip to content

Instantly share code, notes, and snippets.

@jakiestfu
Created October 8, 2018 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakiestfu/a693ec7da7dcb8eeae8a2b24ec0f09ac to your computer and use it in GitHub Desktop.
Save jakiestfu/a693ec7da7dcb8eeae8a2b24ec0f09ac to your computer and use it in GitHub Desktop.
import { BrowserRouter as Router, Route } from 'react-router-dom'
import Upsell from './containers/Upsell'
import AddonsView from './components/AddonsView'
import ExtrasView from './components/Extras'
const Addons = Upsell({
view: AddonsView,
products: ['shave-butter', 'hair-gel', 'butt-wipes'],
})
const Extras = Upsell({
view: AddonsView,
products: ['body-wash', 'face-cleanser', 'tooth-brush'],
})
export default () => (
<Router>
<Switch>
<Route exact path='/get-started/add-ons' component={Addons} />
<Route exact path='/get-started/extras' component={Extras} />
</Switch>
</Router>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment