-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split into multiple packages? #60
Comments
The issue is while transitioning to V4 you might want to do that gradually. |
I think that it is a better choice that |
@mattdamon108 Ok, but ReactV3 also includes ReactDOM. Would it be possible to have
? |
@cknitt Yes, it is possible, but not a simple task as we're expecting. Currently |
First thing came to mind is that |
V3 -> V4 migration period seems quite a good timing to split the bindings though. |
There is a change budget for each transition, the more changes one introduces, the harder the transition becomes. In any case, this change requires deprecation, following by changes later on. So will have to be split across 2 phases. |
Another possible direction, which was explored for a while, but can be explored more if now things are more stable with JSX V4, is to move more of rescript-react into the compiler. |
@rescript/react
currently includes bindings for bothreact
andreact-dom
and also has both as peer and dev dependencies. However, not every React project is also using React DOM. E.g. React Native projects aren't. So IMHOreact-dom
bindings should go into their own package.If we did all that, we'd end up with something like
@rescript/react
@rescript/react-dom
@rescript/react-jsx3-compat
@rescript/rescript-react-router
(or justrescript-react-router
?)@mattdamon108 @cristianoc What do you think? How would such a split affect the PPX?
The text was updated successfully, but these errors were encountered: