Advertisement
Guest User

Untitled

a guest
Sep 12th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  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. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement