package server-reason-react
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Rendering React components on the server natively
Install
dune-project
Dependency
Authors
Maintainers
Sources
server-reason-react-0.5.1.tbz
sha256=3972f64a3ec22b120b40137f74e7862629b2164e5bbf8b85489d4c7b8bc13288
sha512=24a52537c091c4b278ea5e468aa6786378f8b559ed2128e824b6f84f26c283856a30e7ef01aab6101087bd53b9bdc2ecd8152c00db10bccff67221b9c67318a0
doc/server-reason-react.react/React/JSX/index.html
Module React.JSXSource
All of those types are used by the server-reason-react.ppx internally to represent valid React code from the server. It currently different from reason-react-ppx due to a need for knowing the types since ReactDOM needs to render differently depending on the type.
Source
type event = | Drag of Event.Drag.t -> unit| Mouse of Event.Mouse.t -> unit| Selection of Event.Selection.t -> unit| Touch of Event.Touch.t -> unit| UI of Event.UI.t -> unit| Wheel of Event.Wheel.t -> unit| Clipboard of Event.Clipboard.t -> unit| Composition of Event.Composition.t -> unit| Transition of Event.Transition.t -> unit| Animation of Event.Animation.t -> unit| Pointer of Event.Pointer.t -> unit| Keyboard of Event.Keyboard.t -> unit| Focus of Event.Focus.t -> unit| Form of Event.Form.t -> unit| Media of Event.Media.t -> unit| Inline of string
All event callbacks
Source
type prop = | Action : (string * string * _ Runtime.server_function) -> prop| Bool of string * string * bool| BooleanishString of string * string * bool| String of string * string * string| Int of string * string * int| Float of string * string * float| Style of (string * string * string) list| DangerouslyInnerHtml of string| Ref of domRef| Event of string * event
JSX.prop is the representation of HTML/SVG attributes and DOM events
Helpers to create JSX.prop without variants, helpful for function application
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>