Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Provides ways to inspect a JSX.element.
type html_element := element
val view : html_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)
| _ -> ()
}