import React from 'react'
import createBrowserHistory from 'history/lib/createBrowserHistory' // have no idea which api version this will work in. fuck rackt.
import useScroll from 'scroll-behavior/lib/useSimpleScroll'
import { Provider } from 'react-redux'
import configureStore from 'store/configureStore'
import configureRoutes from './configureRoutes'

const browserHistory = useScroll(createBrowserHistory())()

export default (
  <Provider store={ configureStore(browserHistory) }>
    { configureRoutes(browserHistory) }
  </Provider>
)

import React from 'react'
import createBrowserHistory from 'history/lib/createBrowserHistory' // have no idea which api version this will work in. fuck rackt.
import useScroll from 'scroll-behavior/lib/useSimpleScroll'
import { Provider } from 'react-redux'
import configureStore from 'store/configureStore'
import configureRoutes from './configureRoutes'

const browserHistory = useScroll(createBrowserHistory)()

export default (
  <Provider store={ configureStore(browserHistory) }>
    { configureRoutes(browserHistory) }
  </Provider>
)

Fix incorrect usage of enhancer function 'useScroll' on 'createHistory.'
Fix incorrect usage of enhancer function 'useScroll' on 'createHistory.'

Accidentally executed createHistory -> createHistory() before passing it
into useScroll().
