Created
January 5, 2017 22:15
-
-
Save pirate/b2d0adb5902b160e05b953d36007a710 to your computer and use it in GitHub Desktop.
Bug when using inferno.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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