You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Intrinsic JSX elements = lowercase JSX elements (<mesh /> from ThreeJs for example) that takes their own props, not just domProps which all lowercase JSX elements automatically do today.
This can be expressed already:
moduleMesh= {
typeprops= {
position: (float, float, float),
ref?: ReactDOM.domRef,
scale?: float,
onClick?: ReactEvent.Mouse.t=>unit,
onPointerOver?: ReactEvent.Mouse.t=>unit,
onPointerOut?: ReactEvent.Mouse.t=>unit,
children?: React.element,
}
@module("react/jsx-runtime") externalmake: (@as("mesh") _, props) =>React.element="jsx"
}
letrendered= <Mesh /> // will output <mesh> in the HTML
We need to document it.
The text was updated successfully, but these errors were encountered:
Intrinsic JSX elements = lowercase JSX elements (
<mesh />
from ThreeJs for example) that takes their own props, not justdomProps
which all lowercase JSX elements automatically do today.This can be expressed already:
We need to document it.
The text was updated successfully, but these errors were encountered: