AEM 6.5 SPA React component with datasource in dialog

Avatar

Avatar

hussains7950461

Avatar

hussains7950461

hussains7950461

06-12-2019

Hi Team,

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

Answers (1)

Answers (1)

Avatar

Avatar

Nikhil-Kumar

MVP

Avatar

Nikhil-Kumar

MVP

Nikhil-Kumar
MVP

26-08-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