Search results
This module defines helper functions for creating virtual DOM elements safely.
Note: DOM element props are provided as records, and checked using Union
constraints. This allows callers to supply only a subset of the props, and the
compiler will ensure that the provided props exist and have the correct types.
THIS FILE IS GENERATED -- DO NOT EDIT IT Instead edit files under 'codegen/' dir and regenerate with: npm install
node ./index.js
This module defines safe DOM event function and property accessors.
THIS FILE IS GENERATED -- DO NOT EDIT IT Instead edit files under 'codegen/' dir and regenerate with: npm install
node ./index.js
This module provides an efficient (no ReactDOM.findDOMNode
) and
declarative way to aquire a Node
for an element in your render
tree.
For example:
render self =
ref \myRef ->
case myRef of
Nothing -> R.text "First DOM render in progress..."
Just _ -> R.text "First DOM render complete."
THIS FILE IS GENERATED -- DO NOT EDIT IT Instead edit files under 'codegen/' dir and regenerate with: npm install
node ./index.js
These helper components register and unregister event callbacks using React's the lifecycle callbacks. They're useful for declaratively defining global behavior which is associated with a particular component being mounted without having to wire all that lifecycle logic up manually.
For example:
render self =
R.div
{ className: "dropdown-wrapper"
, children:
[ dropdownButton
, guard showDropdown $
windowEvent
{ eventType: EventType "click"
, options: defaultOptions
, handler: \_ -> send self CloseDropdown
}
dropdownMenu
]
}
No further results.