AEM/React an embed component / web component to use Apollo Client JS library implementation | Community
Skip to main content
RiteshY18
New Participant
September 5, 2024

AEM/React an embed component / web component to use Apollo Client JS library implementation

  • September 5, 2024
  • 1 reply
  • 969 views

Looking to use AEM/React combination where react would be an embed component/web component for AEM and will use Apollo graph QL client for API - Any suggestion here 

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

1 reply

arunpatidar
New Participant
September 6, 2024

Hi @riteshy18 

Developing React components that consume content via GraphQL is a supported approach in AEM. You can check out this guide for more details: React with AEM Headless.

As for integrating with another Apollo GraphQL client, I'm not entirely sure about the specifics.

Arun Patidar
RiteshY18
RiteshY18Author
New Participant
September 6, 2024

thank you @arunpatidar but i am looking for embed react component to AEM as hyrbid app not SPA

arunpatidar
New Participant
September 9, 2024

Hi @riteshy18 

There's no existing framework or archetype specifically built for this, but you can create your own setup to use React with AEM in a hybrid approach.

We implemented this in our project by having AEM components serve configuration and content as data attributes, while React handled the presentation layer, especially for dynamic components.

Arun Patidar