Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

238
Views
What are way to create AEM SPA component using React, any Mock data format or guidelines?

I have a React SPA AEM project, when I going to create a new component then it's not showing the client browser. my current progress is:

  1. created a react component like
    import React from 'react';
    import { MapTo } from '@adobe/aem-react-editable-components';
    import './Button.scss';
    
    const RESOURCE_TYPE = 'abbve-spa-ous/components/content/button';
    
    const ButtonConfig = {
        emptyLabel: 'Button',
    
        isEmpty: props => {
            return false;
        }
    };
    
    const Button =props => {
      return (
        <button>${props.text} Button text</button>
      )
    }
    
    MapTo(RESOURCE_TYPE)(Button, ButtonConfig);
  1. import it in import-components.js
  2. update mock data in a public folder like this:
"button": {
                  "id": "button-ergrt454",
                  "text": "Button text",
                  ":type": "abbvie-spa-ous/components/content/button"
                }

check the screenshot: https://prnt.sc/vSMf4ObJQdY8 or visit the link: https://codesandbox.io/s/mock-data-aem-demo-component-xhscyg?file=/src/data.json

but the problem is not showing in the browser this change. how can I overcome this problem any idea or suggestion plz!

Thanks Advance

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!