mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	* stash * more * cli rename * Remove reference * Fix another reference * Fix scripts * Fix package name * Fix tsconfig
		
			
				
	
	
		
			23 lines
		
	
	
		
			537 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			537 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import React from 'react';
 | 
						|
import { render } from 'react-dom';
 | 
						|
import App from '../src';
 | 
						|
 | 
						|
render(<App />, document.getElementById('root'));
 | 
						|
 | 
						|
if (module.hot) {
 | 
						|
  // https://github.com/webpack/webpack/issues/418#issuecomment-53398056
 | 
						|
  module.hot.accept((err) => {
 | 
						|
    if (err) console.error(err.message); // eslint-disable-line no-console
 | 
						|
  });
 | 
						|
 | 
						|
  /*
 | 
						|
    module.hot.accept('./app', () => {
 | 
						|
      const NextApp = require('./app').default;
 | 
						|
      render(
 | 
						|
        <NextApp />,
 | 
						|
        document.getElementById('root')
 | 
						|
      );
 | 
						|
    });
 | 
						|
   */
 | 
						|
}
 |