ice/packages/rax-compat
ClarkXia ebf15cd8c5
Publish canary / Check Changeset exists (push) Has been cancelled Details
CI / build (16.x, ubuntu-latest) (push) Has been cancelled Details
CI / build (16.x, windows-latest) (push) Has been cancelled Details
CI / build (18.x, ubuntu-latest) (push) Has been cancelled Details
CI / build (18.x, windows-latest) (push) Has been cancelled Details
Version / Version (16) (push) Has been cancelled Details
Publish canary / Publish Canary (18) (push) Has been cancelled Details
chore: update versions (#7077)
2025-06-24 10:10:55 +08:00
..
src fix: fix svg for transform (#6987) 2025-03-13 15:57:31 +08:00
tests fix: fix svg for transform (#6987) 2025-03-13 15:57:31 +08:00
.gitignore feat: add es2021 target (#6899) 2024-06-05 10:24:10 +08:00
CHANGELOG.md chore: update versions (#7077) 2025-06-24 10:10:55 +08:00
README.md chore: optimize (#676) 2022-11-15 10:33:11 +08:00
build.config.mts feat: add es2021 target (#6899) 2024-06-05 10:24:10 +08:00
package.json chore: update versions (#7077) 2025-06-24 10:10:55 +08:00
plugin.mjs feat: add es2021 target (#6899) 2024-06-05 10:24:10 +08:00
tsconfig.json Fix unmountComponentAtNode compat rax (#6424) 2023-08-09 14:19:00 +08:00

README.md

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.