AEM 6.5 - Content fragment component in React | Community
Skip to main content
Level 2
December 1, 2019
Solved

AEM 6.5 - Content fragment component in React

  • December 1, 2019
  • 3 replies
  • 4503 views

We are using AEM 6.5 with React SPA. We want to get the content fragment models data in to React as JSON.

Expectation is make use of CF models properties data to built UI.

Any inputs here? or any suitable approach here.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mahamood

Check if this example help.

https://engineering.icf.com/using-a-content-fragment-api-in-react/

3 replies

Nirmal_Jose
Adobe Employee
Adobe Employee
December 2, 2019

AEM gives you the flexibility to do

1. WCMS - Page delivery

2. Headless CMS - only JSON API delivery.

3. Hybrid CMS - both JSON API and Page delivery.

For SPA based CSM, you got two options

1. SPA Editor - Getting Started with SPAs in AEM - Angular

2. Custom Exporter API - You can expose a custom JSON API for the page component and expose the data on it. Overview

Hope this is useful.

MahamoodAccepted solution
Level 3
December 2, 2019
Level 2
December 3, 2019

Thq Mohamood. This link helps.