This PR fixes an issue that was preventing the tests for elements that used deep accessors in the element function caller, like <Foo.bar /> or <Foo.Bar />.
The issue was related to the tests running on OCaml syntax (due to ocaml-migrate-parsetree driver not supporting Reason syntax) and this made that the generated OCaml code for <Foo.bar /> which transforms into Foo.Bar.createElement, being parsed as a Pexp_field expression.
This PR fixes an issue that was preventing the tests for elements that used deep accessors in the element function caller, like
<Foo.bar />
or<Foo.Bar />
.The issue was related to the tests running on OCaml syntax (due to ocaml-migrate-parsetree driver not supporting Reason syntax) and this made that the generated OCaml code for
<Foo.bar />
which transforms intoFoo.Bar.createElement
, being parsed as aPexp_field
expression.Added also a lot of test cases for elements.