ice/packages/rax-compat
ClarkXia 2616c68325
chore: update versions (#6906)
2024-06-26 10:28:56 +08:00
..
src feat(rax-compat): remove props handle 2024-05-21 10:03:43 +08:00
tests fix(rax-compat): fixup tests 2024-05-21 10:40:01 +08:00
.gitignore feat: add es2021 target (#6899) 2024-06-05 10:24:10 +08:00
CHANGELOG.md chore: update versions (#6906) 2024-06-26 10:28:56 +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 (#6906) 2024-06-26 10:28:56 +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.