Skip to content

Commit 5050eb2

Browse files
Update useForm.js
1 parent 5d43891 commit 5050eb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/useForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState } from 'react';
22

3+
const forms = {};
34
const useForm = (name, config) => {
4-
const forms = {};
55
forms[name] = useSpecificForm(name, config)
66
return forms[name];
77
}
@@ -77,4 +77,4 @@ const isEquivalent = (a, b) => {
7777
return true;
7878
}
7979

80-
export default useForm;
80+
export default useForm;

0 commit comments

Comments
 (0)