Is there a strongly typed HTML generator?

When using HTML people often forget to close tags, incorrect settings, you forget to close quotation marks. Unfortunately, the browser often ignores such errors that creates different versions of your site in different browsers. On a simple site, you can check it through W3C validator, but if the site is on React'e or consists of multiple pages, then it is more difficult.

What are strongly typed HTML generators that will not allow to make mistakes? Interested in how the front-end part (React / Vue integration, generation of HTML via JS) and backend part. As I understand it, something like that tried to do PUG, but not sure that is what I need
April 3rd 20 at 18:45
2 answers
April 3rd 20 at 18:47
Actually react solves this problem entirely within itself.
April 3rd 20 at 18:49
If you use libraries like react is not a very topical issue - agree with the opinions of others, then it is necessary to try very hard to miss in the markup or add extra. But if the component is very huge, then there is, IMHO, already a problem in the component.

Find more questions by tags HTML