Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
joyponader authored Jul 10, 2024
1 parent 1beedbc commit 22af6a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export const Hero = ({
</div>
)}
{heroHTML && <div className={s.heroHTMLContainer} dangerouslySetInnerHTML={{ __html: heroHTML }} />}
//see https://legacy.reactjs.org/docs/dom-elements.html#dangerouslysetinnerhtml
//see https://blog.logrocket.com/using-dangerouslysetinnerhtml-react-application/
{heroTitle && <h1 className={cN(s.title, s.titles)}>{heroTitle}</h1>}
{heroSubTitle && (
<h3 className={cN(s.subTitle, s.titles)}>{heroSubTitle}</h3>
Expand Down

0 comments on commit 22af6a2

Please sign in to comment.