failing with this classic error: _registerComponent(...): Target container is not a DOM element
but my ReactDOM.render looks like:
ReactDOM.render(
<Router history={hashHistory}>
<Route path="/" component={MessagingApp}>
<Route path="general" channel="General" component={Channel}></Route>
<Route path="random" channel="Random" component={Channel}></Route>
<Route path="tech" channel="Tech" component={Channel}></Route>
</Route>
</Router>,
document.getElementById('content'));
and then I have this inside my index.html:
<body>
<div id="content"></div>
<script src="/index.js"></script>
<script src="http://ift.tt/2b2RKsJ"></script>
<script src="http://ift.tt/2m2vCqT"></script>
<script src="http://ift.tt/2mNDbjI"></script>
<script src="http://ift.tt/2m2rgAj"></script>
</body>
the code is working fine, just the tests are failing for this error
Aucun commentaire:
Enregistrer un commentaire