New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rejsx

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rejsx

This script allows you to use JSX in the browser with Babel transformed code, as if it were a normal DOM element.

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

Rejsx

This script allows you to use JSX in the browser with Babel compiled code in the browser or with Babel standalone. Use as if it were a normal DOM element created by document.createElement.

How to use

Just include both scripts like so:

<script src="https://glcdn.githack.com/pythondude325/rejsx/raw/master/main.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@babel/standalone@7.1.0/babel.min.js"></script>

Now you can simply use JSX in a script with type text/babel. Use the JSX as if you wre creating a DOM element with document.createElement.

document.body.appendChild(
    <h1>Hello World</h1>
)

Dependencies

babel-standalone or @babel/standalone are required to use JSX. @babel/standalone is recommended and required if you want to use fragments.

Keywords

jsx

FAQs

Package last updated on 20 Jan 2019

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