Created
November 19, 2018 14:54
-
-
Save ryanflorence/7c664baf62c5dd57000c7f129a4a9ffd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sequential | |
function App() { | |
let one = Resource.read('1') | |
let two = Resource.read('2') | |
let three = Resource.read('3') | |
return ( | |
<div> | |
<div>{one}</div> | |
<div>{two}</div> | |
<div>{three}</div> | |
</div> | |
) | |
} | |
// parallel | |
function App() { | |
return ( | |
<div> | |
<One/> | |
<Two/> | |
<Three/> | |
</div> | |
) | |
} | |
function One() { | |
let one = Resource.read('1') | |
return <div>{one}</div> | |
} | |
function Two() { | |
let two = Resource.read('2') | |
return <div>{two}</div> | |
} | |
function Three() { | |
let three = Resource.read('3') | |
return <div>{three}</div> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment