Module

visual-stories

This namespace exports a utility function rendering visual stories

import {enableVisualStories} from '@quintype/framework/server/visual-stories';

function renderVisualStory(res, story, {config, client}) {
  res.render("pages/visual-story", {
    seo: "",
    content: ReactDom.renderToStaticMarkup(<amp-story></amp-story>)
  })
}

enableVisualStories(app, renderVisualStory, {logError})

View Source server/visual-stories.js, line 1