問題描述使用react import一個組件時,使用這個組件并不能讀取到組件,而是一個空定義,import組件沒有報錯相關(guān)代碼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-PWAserviceWorker.unregister();
react import一個組件無法使用
阿波羅的戰(zhàn)車
2019-02-09 22:39:53