HTML doubt render

hi, i have this situation where right now my HTML has a several parts of code. And these parts change a little bit from one profile to another. So i have all these validations on divs, and inside them are these parts of code there are kind of duplicated.

I want to take the whole HTML out of the page, and save somewhere. At first i thought i could save in my DB and i would call it, but i have doubts about its performance.

What could i do, so i wont have these code duplicating ?

The more idiomatic way to organize this is to encapsulate the repeated bits as components in their own right, and then incorporate them in each page that would like to include them.

1 Like

yea, nice, just dont get it how to do that, but thanks anyway XD