Skip to content

Commit

Permalink
Updated async examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jennasalau committed Jan 25, 2018
1 parent ea1aca6 commit bf34bf8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/2-code-splitting-with-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"open-browser-webpack-plugin": "0.0.2",
"react": "^15.3.2",
"react-dom": "^15.3.2",
"react-habitat": "^0.5.0",
"react-habitat": "^1.0.0",
"webpack": "^3.5.5",
"webpack-dev-server": "^2.7.1"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/2-code-splitting-with-webpack/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class App extends ReactHabitat.Bootstrapper {
const containerBuilder = new ReactHabitat.ContainerBuilder();

// Register our components that we want to expose to the DOM
containerBuilder.registerAsync(System.import('./components/Featurette')).as('RFeaturette');
containerBuilder.registerAsync(System.import('./components/Banner')).as('RBanner');
containerBuilder.registerAsync(() => System.import('./components/Featurette')).as('RFeaturette');
containerBuilder.registerAsync(() => System.import('./components/Banner')).as('RBanner');

this.setContainer(containerBuilder.build());
}
Expand Down
2 changes: 1 addition & 1 deletion examples/3-using-redux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"react": "^15.6.1",
"react-dom": "^15.3.2",
"react-redux": "^5.0.6",
"react-habitat": "^0.5.0",
"react-habitat": "^1.0.0",
"redux": "^3.7.2",
"webpack": "^3.5.5",
"webpack-dev-server": "^2.7.1"
Expand Down
4 changes: 2 additions & 2 deletions examples/3-using-redux/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class App extends ReactHabitat.Bootstrapper {
containerBuilder.factory = new ReduxDomFactory(store);

// Register our components that we want to expose to the DOM
containerBuilder.registerAsync(System.import('./containers/AlbumCollection')).as('RAlbumCollection');
containerBuilder.registerAsync(System.import('./containers/AddAlbumForm')).as('RAddAlbumForm');
containerBuilder.registerAsync(() => System.import('./containers/AlbumCollection')).as('RAlbumCollection');
containerBuilder.registerAsync(() => System.import('./containers/AddAlbumForm')).as('RAddAlbumForm');

// Set the DOM container
this.setContainer(containerBuilder.build());
Expand Down

0 comments on commit bf34bf8

Please sign in to comment.