Comments (2)
@nick-khoury yes you should be able to add the react-app module to an existing project archetype as a new maven module. You can configure the aem-clientlib-generator (clientlibconfig.js) to then move the compiled react app into a clientlibrary wherver ui.apps is in your existing project. If you want to use the SPA Editor you would also need to ensure that you have the HierarchyPage and Impl deployed as part of an OSGi bundle and mapped to your Page's resource type (in order to output the JSON that the SPA editor expects)
That being said it looks like you want to mix HTL and SPA components. I personally haven't experimented with this but it seems the approach is to use https://github.com/adobe/react-webcomponent. Keep in mind the approach will change in that the "editable" part of your component will be a regular AEM dialog that persists values to the DOM. You can then use the https://github.com/adobe/react-webcomponent to inject these values into your react component as props. No longer would your react component be consuming JSON from AEM as is the case with the SPA editor, or at least that is my understanding.
Hope this helps!
from aem-spa-project-archetype.
Closing this issue, as the question had been answered and there has been no follow-up since 2+ months
from aem-spa-project-archetype.
Related Issues (20)
- Lighthouse checks with CircleCI
- The desired archetype does not exist (com.adobe.cq.spa.archetypes:aem-spa-project-archetype:1.0.5-SNAPSHOT) HOT 2
- Default app fails due to malformed url HOT 10
- Fix flaky tests on macOS CI HOT 1
- Update to use latest Core Components dependency HOT 1
- Typo in README
- Page with no extension is not rendered
- Update Jackson dependencies
- Angular Archetype discrepancies with Wknd Events code repo HOT 2
- The desired archetype does not exist (com.adobe.cq.spa.archetype:aem-spa-project-archetype:4.0.0 HOT 2
- [Angular] Authorable component does not refresh automatically when in AEM Edit mode HOT 5
- Text Component Fails to Render after upgrading to Angular 9
- Add a convenience NPM script to deploy the project into AEM locally HOT 1
- React Code splitting HOT 8
- wrong path of filter.xml in pom.xml HOT 2
- Doesn't work on IE 11 HOT 2
- Sling mapping url shortening support HOT 2
- React app does not load on publish instance due to HierarchyPageImpl HOT 3
- mvn test fails for newly generated project HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aem-spa-project-archetype.