Skip to main content

ryact-dom

PyPI Python CI

Python port of react-dom (parity target: facebook/react packages/react-dom).

The renderer targets a deterministic in-Python DOM abstraction so behavior can be asserted in pytest.

Install

pip install ryact-dom

Tiny example (render)

from ryact import create_element
from ryact_dom import create_root
from ryact_dom.dom import Container

container = Container()
root = create_root(container)
root.render(create_element("div", {"id": "a"}, "hello"))

Tiny example (server render)

from ryact import create_element
from ryact_dom import render_to_string

html = render_to_string(create_element("div", {"id": "x"}, "hi"))

Source of truth

  • Upstream: https://github.com/facebook/react/tree/main/packages/react-dom

Metadata

Release files for ryact-dom 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ryact-dom 0.0.1
File Size Uploaded
ryact_dom-0.0.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ryact-dom 0.0.1
File Interpreter ABI Platform
ryact_dom-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / ryact_dom-0.0.1.tar.gz

Download URL ryact_dom-0.0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b119e3aac568792b3952f0cdd76263af7ac8de4283e73a58afa69f32a2fa6ae5
BLAKE2b-256 checksum
How to use checksums
bf9f692b18be010446546d1bdd2813cf845402ee6ba906785bfe29b3d2739f4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.18

Release files / ryact_dom-0.0.1-py3-none-any.whl

Download URL ryact_dom-0.0.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
204003064bff2dc2ff88242f900970f27e70b9cfdafd9046cf165fbabc37ed4b
BLAKE2b-256 checksum
How to use checksums
7d2546ee34c67b3297a5d33c091161c2adb26fe2b617a8a9f18fceef0a2c6b0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.18

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page