Skip to content

Instantly share code, notes, and snippets.

@basarat
Last active February 20, 2017 00:21
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 basarat/a3aaf2b8fe1c200f57e1a0041156886a to your computer and use it in GitHub Desktop.
Save basarat/a3aaf2b8fe1c200f57e1a0041156886a to your computer and use it in GitHub Desktop.
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { App } from './app';
ReactDOM.render(<App/>, document.getElementById('root'))
import {setStatefulModules} from 'fuse-box/modules/fuse-hmr';
setStatefulModules(name => {
// Add the things you think are stateful:
return /router/.test(name) || /state/.test(name);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment