Skip to content

Commit

Permalink
Remove mocked-hash-js
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Aug 9, 2023
1 parent 6ee4b82 commit 7389ef3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 32 deletions.
1 change: 0 additions & 1 deletion mocked-hash-js/.gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions mocked-hash-js/dune

This file was deleted.

1 change: 0 additions & 1 deletion mocked-hash-js/hash_js.ml

This file was deleted.

10 changes: 0 additions & 10 deletions mocked-hash-js/package-lock.json

This file was deleted.

4 changes: 0 additions & 4 deletions mocked-hash-js/package.json

This file was deleted.

4 changes: 2 additions & 2 deletions packages/reactDom/src/reactDOM.ml
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ let createPortal _reactElement _domElement = _reactElement

module Style = ReactDOMStyle

let createDOMElementVariadic
(tag: string) ~(props: Attribute.t array) (childrens: React.element array) =
let createDOMElementVariadic (tag : string) ~(props : Attribute.t array)
(childrens : React.element array) =
React.createElement tag props (childrens |> Array.to_list)

let domProps = Props.domProps
11 changes: 6 additions & 5 deletions packages/server-reason-react-ppx/test/test.re
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,12 @@ module Text = {
let make = (~tagType, ~children: React.element) => {
ReactDOM.createDOMElementVariadic(
tagType |> Tag.unwrap,
~props=ReactDOM.domProps(
~className="foo",
~style=ReactDOM.Style.make(~display="none", ()),
(),
),
~props=
ReactDOM.domProps(
~className="foo",
~style=ReactDOM.Style.make(~display="none", ()),
(),
),
React.Children.toArray(children),
);
};
Expand Down

0 comments on commit 7389ef3

Please sign in to comment.