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 4 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 remaing:
- move
JsxEventtoReactDOMEvent. - 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? |
s. rescript-lang/rescript#8282