ngduc / react-setup

A Universal React Setup with i18n: Babel 6, Koa 2, React, React Router, React Transmit, React Bootstrap, React-intl, Mocha, Isparta, Webpack 2, Storybook, InlineCSS/PostCSS, ESLint, HTTPS & HTTP2.
MIT License
175 stars 16 forks source link

Passing cookie from koa ctx.cookies to fragment #21

Closed kenny1har closed 7 years ago

kenny1har commented 7 years ago

API.getPost(1) <-- how do i pass router.params values to the fragment ?

const fragmentObj = {
  post: [API.getPost, 1],
  comments: [API.listComments, 1]
}