Supporting macros for Reacl.
Supporting macros for Reacl.
Reacl core functionality.
Reacl core functionality.
Supporting macros for Reacl's DOM library .
Supporting macros for Reacl's DOM library .
Convenience API for constructing virtual DOM.
This has ClojureScript wrappers for the various HTML elements.
These all expect attributes as a ClojureScript map.
Moreover, sub-element sequences need to be ClojureScript sequences of objects constructed using `keyed-dom'.
Moreover, the `letdom' form constructing virtual DOM elements for easy reference in an event handler.
Convenience API for constructing virtual DOM. This has ClojureScript wrappers for the various HTML elements. These all expect attributes as a ClojureScript map. Moreover, sub-element sequences need to be ClojureScript sequences of objects constructed using `keyed-dom'. Moreover, the `letdom' form constructing virtual DOM elements for easy reference in an event handler.
Various testing utilities for Reacl.
Various testing utilities for Reacl.
Utilities to run system tests.
Utilities to run system tests.
An xpath is basically a convenient and compositional way to define a filter function on nodes in a virtual DOM tree, resp. the React test renderer tree, roughly based on a 'path' through the tree.
The functions select
, select-all
, select-one
and contains?
apply that filter, starting from a specific
context node.
For example:
(require [reacl2.test-util.xpath :as xp :include-macros true])
(>> / ** "div" [xp/text (xp/is= "Hello")])
matches on all div
elements anywhere below the context node, that have a text content equal to "Hello"
.
(>> / my-class / "span" [:id (xp/is= "foo")])
matches on all span
children of instances of the class my-class
below the context node, that have the id "foo"
.
(>> my-class [xp/args (xp/is? = [42])])
matches the context node, if it is an instance of my-class
and if its argument vector equals [42]
.
(>> / "span" [xp/first])
matches the first span element below the context node.
An xpath is basically a convenient and compositional way to define a filter function on nodes in a virtual DOM tree, resp. the React test renderer tree, roughly based on a 'path' through the tree. The functions [[select]], [[select-all]], [[select-one]] and [[contains?]] apply that filter, starting from a specific context node. For example: `(require [reacl2.test-util.xpath :as xp :include-macros true])` `(>> / ** "div" [xp/text (xp/is= "Hello")])` matches on all `div` elements anywhere below the context node, that have a text content equal to `"Hello"`. `(>> / my-class / "span" [:id (xp/is= "foo")])` matches on all `span` children of instances of the class `my-class` below the context node, that have the id `"foo"`. `(>> my-class [xp/args (xp/is? = [42])])` matches the context node, if it is an instance of `my-class` and if its argument vector equals `[42]`. `(>> / "span" [xp/first])` matches the first span element below the context node.
Tracers to be used with reacl2.trace.core/add-tracer!
that issue log entries via js/console.log
.
Tracers to be used with [[reacl2.trace.core/add-tracer!]] that issue log entries via `js/console.log`.
Functions to install and uninstall
tracers (add-tracer!
, remove-tracer!
, and primitives and
utilities to implement new tracers.
Functions to install and uninstall tracers ([[add-tracer!]], [[remove-tracer!]], and primitives and utilities to implement new tracers.
Various utilities for Reacl.
Various utilities for Reacl.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close