Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

mardanbeigi
Copy link
Contributor

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

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
@rweyrauch rweyrauch merged commit 75c4304 into rweyrauch:master Jun 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants