Skip to content

Commit

Permalink
빌드 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
LDH98 committed Jun 2, 2024
1 parent a22c6dd commit 2d08805
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions pages/input-test/index.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
// import React from 'react';
// import { useForm, FormProvider } from 'react-hook-form';
// import FormInput from '@/components/common/Input';
import React from 'react';
import { useForm, FormProvider } from 'react-hook-form';
import FormInput from '@/components/common/Input';

// function App() {
// const methods = useForm();
function App() {
const methods = useForm();

// const onSubmit = (data: any) => {
// console.log(data);
// };
const onSubmit = () => {
console.log('a');
};

// return (
// <FormProvider {...methods}>
// <form onSubmit={methods.handleSubmit(onSubmit)}>
// <FormInput name="name" label="가족의 이름을 알려주세요!" />
// <FormInput name="nickname" label="가족 내 본인의 이름을 입력해주세요." />
// </form>
// </FormProvider>
// );
// }
return (
<FormProvider {...methods}>
<form onSubmit={methods.handleSubmit(onSubmit)}>
<FormInput name="name" label="가족의 이름을 알려주세요!" />
<FormInput name="nickname" label="가족 내 본인의 이름을 입력해주세요." />
</form>
</FormProvider>
);
}

// export default App;
export default App;

0 comments on commit 2d08805

Please sign in to comment.