Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

FredKSchott/react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@pika/react & @pika/react-dom

ESM builds of React v16 & React DOM v16, published to NPM.
This repo is no longer maintained.

Why?

React & React-DOM are both written as Common.js, and rely on some funky dynamic logic that's difficult for ESM bundlers like Rollup to statically analyze.

This package used to be the only way to use React in an ESM-only environment. However, Snowpack v2.0+ introduced the ability to use the "react" & "react-dom" packages directly. These packages are no longer necessary for Snowpack. We'll even warn if you use them! This repo only exists now for projects that need native ESM or that don't support more advanced CJS upconversions (ex: Vite).

The React team is working on ESM support. Until then, you can install these drop-in replacements in your projects to get smaller, optimized production installs with Snowpack, Rollup, Webpack, and Parcel.

# Install with npm
npm install react@npm:@pika/react react-dom@npm:@pika/react-dom
# Install with Yarn
yarn add react@npm:@pika/react react-dom@npm:@pika/react-dom

How to Build Locally

git clone ${REPO}
npm install
node ./build-react.js

About

ESM builds of React & React DOM (v16)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published