AEM 6.5 SPA React component with datasource in dialog | Community
Skip to main content
Level 2
December 6, 2019
Solved

AEM 6.5 SPA React component with datasource in dialog

  • December 6, 2019
  • 2 replies
  • 2150 views

Hi Team,

is there any sample React component that uses datasource ( having some data) to make use of in React Props

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

2 replies

Nikhil-Kumar
Community Advisor
Community Advisor
August 26, 2020

@hussains7950461 

Best way to create a datasource and use it as part of React props is to create a datapage in you site hierarchy and export the JSON of the datasource using Sling Model Exporter and use it as part of React props.

We are implementing something similar in our current implementation.

Thanks,
Nikhil