Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rax

alibaba3.4kBSD-3-Clause1.2.3TypeScript support: definitely-typed

A universal React-compatible render engine.

readme

rax npm Dependency Status Known Vulnerabilities

A universal React-compatible render engine

Install

$ npm install --save rax

With TypeScript

$ npm install --save-dev @types/rax

Usage

import {createElement, render} from 'rax';
import * as DriverDOM from 'driver-dom';

function MyComponent() {
  return <div>Hello World</div>;
}

render(<MyComponent />, document.body, { driver: DriverDOM });

changelog

CHANGELOG

1.2.3

  • chore: move the configuration not related to rendering to inject method, others move to injectRenderOptions method

1.2.2

  • fix: lib/compat bundle error path

1.2.1

  • refactor: change output result format, avoid mixing IIFE and CJS
  • chore: avoid throw error when update unmounted component
  • fix: add error message to getDerivedStateFromError hook