Using custom components in Experience fragment in SPA react app | Community
Skip to main content
Level 2
February 24, 2021
Solved

Using custom components in Experience fragment in SPA react app

  • February 24, 2021
  • 1 reply
  • 1483 views

For our site , we think experience fragment can be good choice for some work.

When I created Experience fragment in react SPA app, I can use some generic components but can not use my custom component.

I can see those components available to add but when I add it , we do not see anything in UI(in experience fragment and in page where we use it). We can see that component in crxde but not in UI.

Also checked same for wknd-spa-react project(demo that AEM folks has provided). Same issue is also happening on their custom component and hello world component.

 

We are using AEM 6.5.0

Thank you in advance for your time and help

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 Vijayalakshmi_S

Hi @neerav_it,

Can you confirm if you have React component equivalent for your custom AEM component?

If yes, check if MapTo is defined to point to custom AEM component (MapTo from @adobe/aem-react-editable-components)

1 reply

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
February 24, 2021

Hi @neerav_it,

Can you confirm if you have React component equivalent for your custom AEM component?

If yes, check if MapTo is defined to point to custom AEM component (MapTo from @adobe/aem-react-editable-components)

neerav_itAuthor
Level 2
February 24, 2021
Yes we do have corressponding react component and have mapto for that too. I also checked same for wknd-spa-react project(demo that AEM folks has provided). Same issue is also happening on their custom component and hello world component.