Loop

From SocialStack
Revision as of 13:59, 9 November 2021 by Luke (talk | contribs)

<Loop> is a very commonly used React component installed by default in SocialStack projects. It is used to loop over lists of items typically from the API.

Sample Usage

     <Loop over='page/list' filter={
       {
              where: {
                     url: {
                            startsWith: '/en-admin/'
                     }
              }
       }
     }>
       {
           page => {
                  return page.title;
           }
       }
     </Loop>