move JsxDOM.dromProps and JsxDOMStyle from compiler to @rescript/react#151
move JsxDOM.dromProps and JsxDOMStyle from compiler to @rescript/react#151dkirchhof wants to merge 9 commits into
Conversation
|
Hi @dkirchhof, |
Yeah, wasn't sure about the version. Also not sure about the overall plan to migrate the domprops from the compiler repo. There are a lot of discussions. |
|
IMO this is going in the right direction. You can try to fix the conflicts. Next step will be to split ReactDOM, may it be with rewatch "features" or by using a monorepo and splitting the packages. |
There was a problem hiding this comment.
@dkirchhof great work!
I think a few things remain:
-
moveJsxEventtoReactDOMEvent. - move the DOM parts (
ReactDOMProps/ReactDOMEvent) out of@rescript/reactinto their own package (@rescript/react-dom).
Once this is done and WebAPI finally cleaned, we'll:
- vendor this package inside rescript monorepo for tests and such and remove dependencies to this package
- remove the
Dommodule from the monorepo - remove
Jsx/JsxDOM/JsxDOMStyle/JsxDOMEventfrom the monorepo - come up with a way to easily provide the module in charge of the JSX function (should we just keep the existing JSX custom config in rescript.json, make it default to
ReactDOM, or make it default to a given module (Jsx?) and moveReactDOMtoReactDOM.Jsxthanks to namespacing, or come up with another mechanism? Making it default to ReactDOM is likely the easiest way forward but it's less agnostic.
|
For the split between rescript/react and rescript/react-dom should we use another repo? |
|
@dkirchhof I think the easiest path would be to move this repo to a yarn monorepo, and split the packages here. |
9f39c54 to
a07783d
Compare
|
I've split the packages, maybe it can be reviewed now? It'll be a good base to work on finalizing the WebAPI bindings. |
|
@codex review |
a07783d to
5bb4552
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a07783d831
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Uses yarn for the package manager. Splits the monorepo into: - @rescript/react - @rescript/react-dom - @rescript/browser-router
a4fe11c to
05fb834
Compare
05fb834 to
9d194ca
Compare
s. rescript-lang/rescript#8282