Last active
October 31, 2018 23:50
-
-
Save quisido/d81e24a78e60e5b4d65ca622b8dbc69a to your computer and use it in GitHub Desktop.
Replacing Redux with ReactN to reduce complexity and bundle size
This file contains hidden or 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 React from 'react'; | |
| import { setGlobal } from 'reactn'; | |
| import ReactDOM from 'react-dom'; | |
| import App from './App'; | |
| setGlobal({ | |
| data: null, | |
| x: 0 | |
| }); | |
| ReactDOM.render(<App />, document.getElementById('root')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment