All files index.jsx

61.54% Statements 8/13
66.67% Branches 4/6
50% Functions 2/4
61.54% Lines 8/13

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19    1x   1x   1x   1x   1x   2x            
import React from 'react';
import { render } from 'react-dom';
import Container from './container';
 
function randomKey() {
  return Math.random().toString(36).substring(7).split('').join('.');
}
 
function renderApp(hot) {
  render(<Container hot={hot} />, document.getElementById('root'));
}
renderApp();
if (module.hot) {
  module.hot.accept('./container', () => {
    var hot = randomKey();
    return renderApp(hot);
  });
}