package jsoo-react
Bindings to ReactJS for js_of_ocaml, including JSX ppx
Install
Dune Dependency
Authors
Maintainers
Sources
0.1.tar.gz
sha256=93d5751c01016f5aa018b80259df0c65ac12f25152cef1dbcff024ddfc1f07b5
md5=240fd3b58cb002ff7eaa6ddddb7eba87
doc/jsoo_react_ppx/Jsoo_react_ppx/Ppx/index.html
Module Jsoo_react_ppx.Ppx
Source
Source
val constantString :
loc:Ppxlib_ast__Ast_helper_lite.loc ->
string ->
Astlib.Ast_500.Parsetree.expression
Source
val extractChildren :
?removeLastPositionUnit:bool ->
loc:Ppxlib_ast__Ast_helper_lite.loc ->
(Ppxlib.arg_label * Ppxlib.expression) list ->
Astlib.Ast_500.Parsetree.expression
* (Ppxlib.arg_label * Ppxlib.expression) list
Source
val getPropsNameValue :
'a ->
(Ppxlib.longident Ppxlib.loc * Ppxlib.expression) ->
componentConfig
Source
val makeArgsForMakePropsType :
(Str_label.t
* 'a option
* Ppxlib_ast__Ast_helper_lite.loc
* Ppxlib.core_type option)
list ->
Astlib.Ast_500.Parsetree.core_type ->
Astlib.Ast_500.Parsetree.core_type
Source
val makePropsName :
loc:Ppxlib_ast__Ast_helper_lite.loc ->
string ->
Astlib.Ast_500.Parsetree.pattern
Source
val makeObjectField :
Ppxlib.location ->
(Str_label.t * 'a * Ppxlib_ast.Ast.core_type) ->
Ppxlib.object_field
Source
val makePropsType :
loc:Ppxlib_ast__Ast_helper_lite.loc ->
(Str_label.t * 'a * Ppxlib_ast.Ast.core_type) list ->
Astlib.Ast_500.Parsetree.core_type
Source
val make_funs_for_make_props_body :
(Str_label.t * 'a * Ppxlib_ast__Ast_helper_lite.loc * 'b) list ->
Astlib.Ast_500.Parsetree.expression ->
Astlib.Ast_500.Parsetree.expression
Source
val makeAttributeValue :
loc:Ppxlib.location ->
isOptional:bool ->
Html.attributeType ->
Ppxlib_ast.Ast.expression ->
Ppxlib_ast.Ast.expression
Source
val makeEventValue :
loc:Ppxlib.location ->
isOptional:bool ->
Html.eventType ->
Ppxlib_ast.Ast.expression ->
Ppxlib_ast.Ast.expression
Source
val make_js_props_obj :
loc:Ppxlib_ast__Ast_helper_lite.loc ->
(Str_label.t * 'a * 'b * 'c) list ->
Ppxlib_ast.Ast.expression
Source
val get_wrap_fn_for_type :
loc:Ppxlib.location ->
Ppxlib_ast.Ast.core_type option ->
Ppxlib_ast.Ast.expression option
Source
val make_external_js_props_obj :
loc:Ppxlib_ast__Ast_helper_lite.loc ->
(Str_label.t * 'a * 'b * Ppxlib_ast.Ast.core_type option) list ->
Ppxlib_ast.Ast.expression
Source
val make_make_props :
Ppxlib_ast.Ast.expression ->
string ->
Ppxlib_ast__Ast_helper_lite.loc ->
(Str_label.t
* 'a option
* Ppxlib_ast__Ast_helper_lite.loc
* Ppxlib.core_type option)
list ->
(Str_label.t * 'b * Ppxlib_ast.Ast.core_type) list ->
Ppxlib.expression ->
Astlib.Ast_500.Parsetree.expression
Source
val recursivelyTransformNamedArgsForMake :
< expression : Ppxlib.expression -> Ppxlib.expression.. > ->
Ppxlib.expression ->
(Str_label.t
* Ppxlib.expression option
* Ppxlib.pattern
* string
* Ppxlib.location
* Ppxlib.core_type option)
list ->
(Str_label.t
* Ppxlib.expression option
* Ppxlib.pattern
* string
* Ppxlib.location
* Ppxlib.core_type option)
list
* string option
Source
val arg_to_concrete_type :
(Str_label.t * 'a list * Astlib.Ast_500.Parsetree.core_type) list ->
(Str_label.t
* Ppxlib_ast__Ast_helper_lite.loc
* Astlib.Ast_500.Parsetree.core_type) ->
(Str_label.t * 'a list * Astlib.Ast_500.Parsetree.core_type) list
Source
val argToType :
(Str_label.t * 'a list * Ppxlib.core_type) list ->
(Str_label.t
* 'b option
* 'c
* 'd
* Ppxlib.location
* Ppxlib.core_type option) ->
(Str_label.t * 'a list * Ppxlib.core_type) list
Source
val make_js_comp :
loc:Ppxlib_ast__Ast_helper_lite.loc ->
fn_name:string ->
forward_ref:string option ->
has_unit:bool ->
named_arg_list:
(Str_label.t * 'a * 'b * 'c * Ppxlib_ast__Ast_helper_lite.loc * 'd) list ->
named_type_list:(Str_label.t * 'e * Ppxlib_ast.Ast.core_type) list ->
payload:Ppxlib.payload option ->
wrap:
(Astlib.Ast_500.Parsetree.expression ->
Astlib.Ast_500.Parsetree.expression) ->
Ppxlib.expression ->
Astlib.Ast_500.Parsetree.expression
Source
val make_ml_comp :
loc:Ppxlib_ast__Ast_helper_lite.loc ->
fn_name:string ->
body:Astlib.Ast_500.Parsetree.expression ->
Ppxlib.expression ->
Astlib.Ast_500.Parsetree.expression
Source
val process_value_binding :
pstr_loc:Ppxlib.location ->
inside_component:bool ->
mapper:< expression : Ppxlib.expression -> Ppxlib.expression.. > ->
Ppxlib.value_binding ->
Astlib.Ast_500.Parsetree.value_binding
Source
val uppercase_element_args :
loc:Ppxlib_ast__Ast_helper_lite.loc ->
(Ppxlib.arg_label * Ppxlib.expression) list ->
Astlib.Ast_500.Parsetree.expression
* (Ppxlib.arg_label * Ppxlib.expression) list
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>