Module
React.Basic.DOM.Components.Ref
- Package
- purescript-react-basic
- Repository
- lumihq/purescript-react-basic
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."
#selectorRef Source
selectorRef :: QuerySelector -> (Maybe Node -> JSX) -> JSX
Re-exports from Web.DOM.ParentNode
#QuerySelector Source
- Modules
- React.
Basic - React.
Basic. Compat - React.
Basic. Components. Async - React.
Basic. DOM - React.
Basic. DOM. Components. GlobalEvents - React.
Basic. DOM. Components. LogLifecycles - React.
Basic. DOM. Components. Ref - React.
Basic. DOM. Events - React.
Basic. DOM. Generated - React.
Basic. DOM. Internal - React.
Basic. DOM. SVG - React.
Basic. Events