ice/packages/rax-compat/README.md

393 B

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.