使用react import一个组件时,使用这个组件并不能读取到组件,而是一个空定义,import组件没有报错
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import home from './containers/home';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<home />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
serviceWorker.unregister();
翻过高山走不出你