Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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(