import 'whatwg-fetch'
export const createFunction = view => Function('require', 'exports', 'modules', `
  var ReactDOM = modules.ReactDOM;
  var React = modules.React;
  var PropTypes = modules.PropTypes;
  var _ = modules._;
  var styleLoader = modules.styleLoader;
  var cssLoader = modules.cssLoader;
  var classNames = modules.classNames;
  ${view}
`)

