You can search for identifiers within the package.
in-package search v0.2.0
Provides ways to inspect a JSX.element.
type __node = {
tag : string;
attributes : Attribute.t list;
children : __element list;
}
Type for inspection of a node
and __element =
| Null
| String of string
| Unsafe of string
| Fragment of __element list
| Node of __node
| Component of unit -> __element
| List of __element list
val view : element -> __element
A function to inspect a JSX.element.
let debug: JSX.Debug.__element = JSX.Debug.view( <div> <h1> {JSX.string("Hello, World!")} </h1> </div> ); switch (debug) { | JSX.Debug.Node {tag; attributes; children} -> Printf.printf("Node: %s", tag) | _ -> () }