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

react-es6

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-es6

ES6/ESM versions of React libraries via importmap

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
29
-27.5%
Maintainers
1
Weekly downloads
 
Created
Source

What is this?

This repository ships these ESM-consumable files, which can be used without needing any annoying build-tool:

"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^5.2.0",

Installation

npm i react-es6@1.0.2

Example script

example.js

import {createElement} from 'react';
import React from 'react';
import ReactDOM from 'react-dom/client';
const div = document.createElement('div');
document.body.append(div);
ReactDOM.createRoot(div).render(createElement(
  React.StrictMode,
  null,
  createElement(
    "div",
    null,
    "Hai!",
  ),
));

Then just a importmap.js and a HTML file including this script and you are ready to use React without stones in your way.

Full example: ./example/

65wat

The only reason this repository exists is because React doesn't ship them... what are they paid for?!

FAQs

Package last updated on 15 Jul 2024

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