AEM SPA React state management | Community
Skip to main content
BaluM
Level 2
Jun 6, 2020 7:41 PM UTC
Solved

AEM SPA React state management

Hi All,

We are working on AEM 6.5 SPA using React as frontend(project created using archetype 23).

 

Can we use any state management frameworks like Redux in AEM to support data share between pages/components?

Or AEM SDK can be used to achieve this requirement

 

Thanks in advance.

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ms114Accepted solution
Employee
Jun 8, 2020 5:22 AM UTC

@balum I think in AEM the redux states are managed by sling models JSON export of the pages, so it should work

5 replies

New Participant
Oct 15, 2020 9:22 AM UTC

.

Translate
ms114Accepted solution
Employee
Jun 8, 2020 5:22 AM UTC

@balum I think in AEM the redux states are managed by sling models JSON export of the pages, so it should work

Translate
BaluM
BaluMAuthor
Level 2
Jun 9, 2020 8:06 AM UTC

Hi @ms114 - I just checked in adobe documentation and found below options for data sharing between components.

 

Sharing Information Between SPA Components

It is regularly necessary for components within a single-page application to share information. There are several recommended ways of doing this, listed as follows in increasing order of complexity.
Translate
BaluM
BaluMAuthor
Level 2
Jun 7, 2020 3:27 PM UTC
Level 6
Jun 7, 2020 8:17 AM UTC

Short answer, both of your questions are possible, for long answer, post it to Stackoverflow, I can explain in more details

Translate