Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
category =>
category.pages && {
sectionName: category.title,
content: (
<ul>
{category.pages.map(page => (
<li>
{page.title}
</li>
))}
</ul>
)
}
);