Skip to content

Commit

Permalink
feat: update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
xtuc committed Apr 24, 2017
1 parent f65276c commit 882854e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/React-dynamic-import/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ function Loader() {
}

const Post = asyncReactor(import('./Components/Post'), Loader);
const Container = asyncReactor(import('./Components/Container'), Loader);

async function AsyncPosts() {
const Container = (await import('./Components/Container')).default;

const data = await fetch('https://jsonplaceholder.typicode.com/posts');
const posts = await data.json();

Expand Down

0 comments on commit 882854e

Please sign in to comment.