package server-reason-react
Rendering React components on the server natively
Install
Dune Dependency
Authors
Maintainers
Sources
server-reason-react-0.3.0.tbz
sha256=2a6fc7197d251dc91babcf22cb6987e1d07e91ae631cc62a893df2c6da6b49b5
sha512=c6ed6eb39b046b698844e561cf9a42a866e4df632a6e495a6473ba629ecd9ee534db0b5b42737776d9a4b15376bea1380b77749228c88a0fc0f6b10ead4b3a01
doc/server-reason-react.react/React/JSX/index.html
Module React.JSX
Source
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
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)"
>