SHARE
TWEET

Untitled

a guest Sep 12th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module PostsComponentWithLoader {
  2.  
  3.   module  LoaderComponentConfig = {
  4.     type dataType = Posts.posts
  5.   };
  6.  
  7.   module PostsLoaderComponent = LoaderComponent.LoaderComponent(LoaderComponentConfig);
  8.  
  9.   [@react.component]
  10.   let make = () => {
  11.       <PostsLoaderComponent
  12.         fetchData=(() => Network.fetchPosts())
  13.         renderView=((posts: Posts.posts) => <PostsViewComponent posts />)/>
  14.     };
  15. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top