Socket
Book a DemoInstallSign in
Socket

@maxchang/jsx-dom

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maxchang/jsx-dom

A browser and userscript-friendly repackaging of [alex-kinokon/jsx-dom](https://github.com/alex-kinokon/jsx-dom).

8.1.6
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

@maxchang/jsx-dom

A browser and userscript-friendly repackaging of alex-kinokon/jsx-dom.

What is jsx-dom?

A lightweight wrapper around document.createElement that lets you create DOM elements using JSX syntax, eliminating tedious imperative code. Particularly valuable for userscripts that need to dynamically generate DOM elements.

Features

  • UMD Support: Allows loading directly from a CDN in userscripts via @require.
  • ESM Retained: Keeps the ESM build for benefits like HMR and optional bundling.

Installation

pnpm add @maxchang/jsx-dom
yarn add @maxchang/jsx-dom
npm install @maxchang/jsx-dom

Why Not ...?

  • alex-kinokon's jsx-dom
    • No UMD support, only ESM. Cannot be used in userscripts via @require a CDN.
  • violentmonkey's vm-dom
    • Based on @gera2ld/jsx-dom, which is not actively maintained.
    • Do not have type definitions for jsx-runtime.

License

This project is licensed under the BSD 3-Clause License, the same as jsx-dom.

See LICENSE for details.

FAQs

Package last updated on 06 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.