Skip to content

Add JSX/TSX support - #419

Merged
NotValra merged 5 commits into
NotValra:mainfrom
bogdan-glitchm:add-preact
Nov 14, 2026
Merged

NotValra merged 5 commits into
NotValra:mainfrom
bogdan-glitchm:add-preact

Conversation

@bogdan-glitchm

@bogdan-glitchm bogdan-glitchm commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Added JSX/TSX support via Preact.

Details

  • Uses Preact 11.2
  • I updated contributing.md to include details about AI-assisted PRs
  • I updated contributing.md to include instructions on how to use JSX/TSX
  • I added tsconfig.json for basic type checking, and Intellisense support for JSX/TSX.
  • The build script was updated to inject Preact imports (like render()) into every file, so they become optional (you still won't get Intellisense or autocomplete until you import them)
  • I updated overlay.js to use Preact for one element of the overlay, to test that it works, and as an example for new contributors to follow if they haven't worked with Preact before
  • I have a ui/react.ts helper, just to make DX better

@meshahid973

Copy link
Copy Markdown
Contributor

Approve approved

It now appends the element to the parent rather than replacing everything underneath the parent
@bogdan-glitchm bogdan-glitchm mentioned this pull request Nov 10, 2026
Comment thread CONTRIBUTING.md
* Make sure it builds
* Make sure it works properly, without significant issues
* If Artificial Intelligence was utilised in the generation or authoring of the PR, please very clearly disclose/specify what AI did, what it was used for, and whether you tested its code
* If Artificial Intelligence was utilised in the generation or authoring of the PR, please manually review and test all code generated by the AI before opening the PR

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Combine with 23

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lines start exactly the same, why not combine them?

@NotValra
NotValra merged commit 6984257 into NotValra:main Nov 14, 2026
2 of 3 checks 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.

4 participants