require.ensure([], function(require) { require('./Facility'); }, 'Facility');
Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of `NonPatientSer`
Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `NonPatientSer`.
bundle.js?ver=1.11:1Not allowed to load local resource: file:///C:/Users/.../facility.bundle.js
componentDidMount(){
var Facility;
require.ensure([], function(require) {
Facility = require('./Facility').default;
render(<Facility/>, document.getElementById('fl'));
}, 'facility');
}
render() {
return (
<div>
<div id="fl"></div>