Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
return (
<section>
<main>
<div>
{
this.props.sections.map((sectionDetails) => {
const { type } = sectionDetails;
const Comp = componnentMap[type] || Section; // Fallback to section for any case.
return
})
}
</div>
</main>
{this.props.branding && <div></div></section>