О
Size: a a a
О
AO
О
AO
AO
AO
AO
З
З
О
З
З
const nameFieldChanged = createEvent()
const passwordFieldChanged = createEvent()
const submitPressed = createEvent()
const $name = restore(nameFieldChanged, "")
const $password = restore(passwordFieldChanged, "")
const $loginForm = combine({ name: $name, password: $password })
sample({
source: $loginForm,
clock: submitPressed,
target: login
})
З
const NameField = () => {
return <Input value={useStore($name)} onChange={nameFieldChanged} />
}c
c
О
c
c
c
c