Skip to content

Instantly share code, notes, and snippets.

@yakkomajuri
Created February 21, 2021 15:06
Show Gist options
  • Save yakkomajuri/81f390482757cfc2dc590f826ab3c476 to your computer and use it in GitHub Desktop.
Save yakkomajuri/81f390482757cfc2dc590f826ab3c476 to your computer and use it in GitHub Desktop.
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { getContext, resetContext } from 'kea'
import { App } from './App'
resetContext({
createStore: {},
plugins: [],
})
ReactDOM.render(
<Provider store={getContext().store}>
<App />
</Provider>,
document.getElementById('root')
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment