-
Notifications
You must be signed in to change notification settings - Fork 463
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
group Jsx
modules
#7347
base: master
Are you sure you want to change the base?
group Jsx
modules
#7347
Conversation
Creates a top-level module for `Jsx`. It contains the following submodules: - `Jsx.DOMStyle` - `Jsx.Event` - `Jsx.DOM` Deprecate `JsxDOM.res`, `JsxDOMStyle` and `JsxEvent` `JsxDOM.res` code has been duplicated to avoid cyclic dependency. With these changes we can have a section in the sidebar menu for the `Jsx` module containing `DOM`, `DOMStyle` and `Event`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -21,6 +21,7 @@ | |||
} | |||
}, | |||
"../../..": { | |||
"name": "rescript", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this keeps changing back and forth.
Probably depending on the npm version used?
If we want this change, we should do it in a separate PR for all package-lock.json files.
@@ -60,4 +60,4 @@ module Elements = { | |||
external jsxsKeyed: (string, props, ~key: string=?, @ignore unit) => Jsx.element = "jsxs" | |||
|
|||
external someElement: element => option<element> = "%identity" | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary change
module Event = JsxEvent | ||
module DOM = { | ||
type style = DOMStyle.t | ||
type domRef |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is problematic that the types defined here (other than style
) are different from those in JsxDOM
. They should all be aliases.
Creates a top-level module for
Jsx
. It contains the following submodules:Jsx.DOMStyle
Jsx.Event
Jsx.DOM
Deprecate
JsxDOM.res
,JsxDOMStyle
andJsxEvent
JsxDOM.res
code has been duplicated to avoid cyclic dependency.With these changes we can have a section in the sidebar menu for the
Jsx
module containingDOM
,DOMStyle
andEvent