rax-compat
TypeScript icon, indicating that this package has built-in type declarations

0.2.11 • Public • Published

rax-compat

A runtime polyfill, for writing rax, but rendering in real React.

Usage

import { createElement } from 'rax-compat';

export default function() {
  return createElement('div', null, 'Hello World');
}

Also works with JSX, should be configured with packer(webpack/turbopack).

See also @ice/plugin-rax-compat.

Dependencies (3)

Dev Dependencies (8)

Package Sidebar

Install

npm i rax-compat

Weekly Downloads

3

Version

0.2.11

License

MIT

Unpacked Size

82.5 kB

Total Files

125

Last publish

Collaborators

  • csbun
  • clarkxia
  • chenjun1011
  • answershuto
  • luhengchang228
  • rax-publisher
  • linbudu