Last active
September 16, 2019 18:00
-
-
Save john-osullivan/0212d49249354776709c167a2985a951 to your computer and use it in GitHub Desktop.
Dev Diaries #2 - Type Factory in useState
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function LoginScreen(props) { | |
const [loginArgs, setLoginArgs] = React.useState(Login.newArgs()); | |
async function submitLogin() { | |
const res:Login.Response = await DappbotAPI.auth.login.call(loginArgs); | |
... | |
} | |
return ( | |
... | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment