Initial commit: NestJS NextJS pnpm monorepo
This commit is contained in:
commit
610dcf202b
175 files changed
+25172
No files matched your search
@@ -0,0 +1,25 @@
|
||||
"use client";
|
||||
|
||||
import { useState } from "react"
|
||||
import { InputText } from "../form/inputText"
|
||||
|
||||
|
||||
interface Values{
|
||||
name:string,
|
||||
sonstiges:string
|
||||
}
|
||||
|
||||
export const TestForm = ()=>{
|
||||
const [values,setValues] = useState<Values>({name:"",sonstiges:""})
|
||||
return (
|
||||
<div>
|
||||
<InputText label="Name" name="name" valueInit="wert" onTxtChange={(v)=>setValues((pre)=>({...pre,...v}))} />
|
||||
<div>
|
||||
<div>name:{values.name}</div>
|
||||
<div>sonstiges:{values.sonstiges}</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user