How to use the resolve-redux.getOrigin function in resolve-redux

To help you get started, we’ve selected a few resolve-redux examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github reimagined / resolve / examples / image-gallery / client / index.js View on Github external
const entryPoint = ({ rootPath, staticPath, localS3Constants }) => {
  const origin = getOrigin(window.location)
  const history = createBrowserHistory({ basename: rootPath })

  const store = createStore({
    history,
    origin,
    rootPath,
    isClient: true
  })

  const appContainer = document.createElement('div')
  document.body.appendChild(appContainer)
  render(