rweyrauch / PrettyScribe

Pretty-printer for Battlescribe Warhammer 40k, Kill Team and Age of Sigmar rosters.
https://rweyrauch.github.io/PrettyScribe/
ISC License
59 stars 17 forks source link

40k: move rest of 10th rendering to tsx #171

Closed mardanbeigi closed 3 months ago

mardanbeigi commented 4 months ago

Move rest of 40k 10th rendering to tsx, namely removing explicit calls to document.createElement().

Common files, like for rendering options, are untouched. Those functions require passing in parent component and then adding DOM to that, whereas with the tsx code we're writing, we want functions to return DOM nodes that are then added to parent components by the caller.

In future, we could update those common files, but it's lo pri and I'm keen to leave them alone