frontend add

This commit is contained in:
shinmj
2021-10-21 09:03:17 +09:00
parent 8caa4bbc5a
commit cb9d50511e
443 changed files with 88282 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import React, { useState } from 'react'
export default function useInputs(initial: ValueType) {
const [value, setValue] = useState<ValueType>(initial)
const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
setValue(event.target.value)
}
/**
* @TODO
* validation 추가필요
*/
return {
value,
onChange: handleChange,
}
}