adobe / aem-sample-we-retail-journal

We.Retail Journal is a sample showcasing SPA Editing capabilities in AEM using React and Angular
Apache License 2.0
70 stars 69 forks source link

Meaning of AppPage #89

Closed ofirattia closed 4 years ago

ofirattia commented 4 years ago

Hi,

I noticed that in your example, the page will be load only if the AppPage component is loaded within the ImportComponents, why?

https://github.com/adobe/aem-sample-we-retail-journal/blob/master/react-app/src/components/Page.js

pfauchere commented 4 years ago

The presence of the ImportComponents.js file is a structural decision taken during the conception of this sample project. Feel free to structure your project at your convenience. In this example, we opted for centralizing the calls to the module loader in one place. BTW, for a more comprehensive example, please refer to [0]. We are keeping the current example public until [0] contains a section related to SSR configuration.

[0] https://github.com/Adobe-Marketing-Cloud/aem-guides-wknd-events