0
간단한 반응 구성 요소를 렌더링 중입니다. 생성자를 사용하여 반응하는 응용 프로그램을 초기화하십시오.
는 아무도 내가가 새로운 기능 AppInitializer에 왜 대신AppInitializer.run();
class AppInitializer {
run() {
render(
<Router history={browserHistory}>
<Route path="/" component={ App } >
<IndexRoute component={ Home } />
</Route>
<Redirect from="*" to="/" />
</Router>
, document.getElementById('app')
);
}
}
new AppInitializer().run();