[SPA/React] Render component with wcmmode=disabled

Pawel_Oc

11-03-2020

Hello,

 

currently we are developing react component for Spa editor. We are now facing with the issue how to display component in preview/publish mode when we are still on author instance.

The counterpart in sightly would <div data-sly-resource="${'path/to/resource' @ wcmmode='disabled'}"></div>

What is the right way to achieve that in SPA react component? I did not find any hint in the documentation.

 

Regards,

Pawel

Accepted Solutions (1)

Accepted Solutions (1)

Answers (0)