Author component inside pure React component
Hi,
I have recently begun implementing a project using AEM 6.5 and React. Since this integration is fairly recent, and vastly different from our previous experiences with AEM, we followed the documentation and the example project closely to grasp the methodology of leveraging AEMs functionality with React.
Still, after successfully experimenting implementing core components, building our own custom authored components and pure React components, we reached a standstill trying to integrate an authored component inside a pure React component.
The use case is as follows:
- You have some component that contains other components
- Most of these components are pure business components, so no need for authoring capabilities in them
- One of this business components should contain an authored component (or a parsys so we can inject any component)
How is it possible to use this component inside React, that is, how can we fetch the props that come in the model.json?
We find it rather limiting that such use cases, that are very common, don't have a straightforward, so we are reaching out so we can figure out how to mitigate this issue.
Thanks for your help.
Best regards,
Álvaro Alves