Hi all,
In my project, we are using AEM 6.4 with react. From aem we are exposing data to react as data props like below
<div data-component='changeAssessmentDetails' data-props='
{
"changeAssessmentTitle":"Change your assessment",
"cancelButtonbgColor":"#e3e000"
}
'></div>
In react, they are creating component using component name(changeAssessmentDetails) what we have exposed.
Now I got a requirement to show different UI for same component. I can send one field from aem as a data property.
Based on that property ,Is it possible to show different UI in react?
Note: Data component name should be same in both the cases.
Thanks in advance.