How to use the @sitecore-jss/sitecore-jss-react.withPlaceholder function in @sitecore-jss/sitecore-jss-react

To help you get started, we’ve selected a few @sitecore-jss/sitecore-jss-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Sitecore / jss / samples / advanced-sample-react / src / about / components / About.js View on Github external
<div>{pageContentPlaceholder}</div>
        
      
    
  
);

About.propTypes = {
  style: PropTypes.object,
  loading: PropTypes.bool,
  rendering: PropTypes.object,
};

export default compose(
  commonComponent,
  withPlaceholder([
    { placeholder: 'page-header', prop: 'pageHeaderPlaceholder' },
    { placeholder: 'page-content', prop: 'pageContentPlaceholder' },
  ])
)(About);
github Sitecore / jss / samples / advanced-sample-react / src / ui / components / Tabs.js View on Github external
{tabs}
      
    
  
);

Tabs.propTypes = {
  style: PropTypes.object,
  rendering: PropTypes.object,
  sitecoreContext: PropTypes.object,
};

export default compose(withPlaceholder('tabs'), commonComponent)(Tabs);

@sitecore-jss/sitecore-jss-react

This module is provided as a part of Sitecore JavaScript Rendering SDK (JSS). It contains React components and integration for JSS.

Apache-2.0
Latest version published 7 days ago

Package Health Score

66 / 100
Full package analysis

Similar packages