Migrating Components Written In HTL (Sightly) to React | Community
Skip to main content
Level 2
April 13, 2021

Migrating Components Written In HTL (Sightly) to React

  • April 13, 2021
  • 3 replies
  • 1774 views

Hey Everyone, 

 

I have a project that has about 20 or so components written in HTL (Sightly) and will need to migrate them to instead be in React. 

 

My question is, can I do this incrementally in AEM? As in, can I convert a few components at a time to React while still keeping others as HTL on the same page, or would a migration like this require me to migrate all components to React in one full sweep?

 

I can't seem to find any information on HTL and React being used in conjunction with one another on the same page, so any guidance on how to do a migration like this or confirmation that an incremental approach is not possible would be appreciated. 

 

Thanks

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Pawan-Gupta
Level 8
April 13, 2021
Level 2
April 14, 2021
Thanks for the reply, but this isn't exactly what I was looking for. I am specifically looking for content around doing a migration and if there is a way to do the migration iteratively. Sadly it seems the conversion of a site in HTL to React will need to be done all at once rather than having some kind of interop between HTL and React.
Level 2
April 14, 2021

As per my knowledge, there will be no change in the dialog side, you have to write react js code for mapping this component. You can not use both (react and sigtly). You have to migrate all componnet in react.

Level 2
April 14, 2021
I was afraid that may be the case. Thanks for your input Raushan.