Coder Social home page Coder Social logo

Comments (2)

godanny86 avatar godanny86 commented on July 27, 2024

@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.

habansal avatar habansal commented on July 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.