Skip to content

Instantly share code, notes, and snippets.

@pirate
Created January 5, 2017 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pirate/b2d0adb5902b160e05b953d36007a710 to your computer and use it in GitHub Desktop.
Save pirate/b2d0adb5902b160e05b953d36007a710 to your computer and use it in GitHub Desktop.
Bug when using inferno.js
import Inferno from 'inferno'
import {Provider} from 'inferno-redux'
import {createStore, combineReducers} from 'redux'
window.initial_state = {}
window.react_mount = document.getElementById('react')
window.store = createStore(
combineReducers({}), // reducers ommited because not needed to reproduce bug
window.initial_state,
)
Inferno.render(
<Provider store={window.store}>
<div style={{height: '100%'}}>
hi
</div>
</Provider>,
window.react_mount,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment