4 ms·
What if you just set innerHTML to a quoted HTML string then the syntax colorizer would color it for you? Would that settle most of what you were doing transpili
by hyperhello 3y ago
What if you just set innerHTML to a quoted HTML string then the syntax colorizer would color it for you? Would that settle most of what you were doing transpiling for? Or just put the tags and attributes in JSON and the content in quotes? Universal and guaranteed to work without proprietary superlanguages.
- axiak 3y agoI'm not a frontend engineer so I might be misunderstanding, but I thought react was creating representations of dom elements in the render function so that it only needs to apply diffs to the actual dom to keep the browser from eating cpu
- hyperhello 3y agoBut the browser could be doing that itself.
- mock-possum 3y agoCheck out what Lit is doing with tagged template literals.