Using custom components in Experience fragment in SPA react app | Community
Skip to main content
Level 2
Feb 24, 2021 8:16 PM UTC
Solved

Using custom components in Experience fragment in SPA react app

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.
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Feb 24, 2021 9:36 PM UTC

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)

3 replies

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Feb 24, 2021 9:36 PM UTC

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)

Translate
neerav_itAuthor
Level 2
Feb 24, 2021 10:18 PM UTC
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.
Translate