rescript-lang / rescript-lang/rescript
Move JsxDOM types etc. into @rescript/react(-dom)
Open
@tsnobip is already working on this.
Since Apr 29, 2026.
cleanup
- Dominant language
- OCaml
- Stars
- 7.5k
- Forks
- 485
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 55
Description
Proposal:
- Remove modules
Dom,Dom_storage,Dom_storage2from the@rescript/runtimepackage - Instead of those, vendor the base package of
experimental-webapi - Make the vendored
@rescript/reactdepend on that - Split off
@rescript/react-dom - Move
JsxDOM/JsxDOMStyle/JsxEventinto@rescript/react-dom - Make everything work 🙂
- Also make it work/test with rescript-react-native and a with non-React JSX runtime like Xote
Note that any vendoring here (@rescript/react, @rescript/react-dom, relevant parts of webapi and rescript-react-native/Xote) does not mean moving the source of truth for these packages into the compiler repo. It's just for easier and quicker iteration while moving things around.
Once the new shape has crystallized, things need to be synced back to the respective repos.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.