Skip to content

Commit

Permalink
Flatten Helpers module (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
thangngoc89 authored and fakenickels committed Feb 22, 2018
1 parent 3c4e6b7 commit eacd352
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions re/ReForm_Helpers.re
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
module Helpers = {
let handleDomFormChange = (handleChange, event) =>
handleChange(
ReactDOMRe.domElementToObj(ReactEventRe.Form.target(event))##value
);
let handleDomFormSubmit = (handleSubmit, event) => {
ReactEventRe.Synthetic.preventDefault(event);
handleSubmit();
};
let handleDomFormChange = (handleChange, event) =>
handleChange(
ReactDOMRe.domElementToObj(ReactEventRe.Form.target(event))##value
);
let handleDomFormSubmit = (handleSubmit, event) => {
ReactEventRe.Synthetic.preventDefault(event);
handleSubmit();
};

0 comments on commit eacd352

Please sign in to comment.