Created
November 7, 2019 09:37
-
-
Save john-osullivan/a821e52481f3d31b22ed79f00a98ffdb to your computer and use it in GitHub Desktop.
Dev Diary #3 - renderProps make easy handlers
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 handler(args: ArgShape<DappNameArg>) { | |
fastRender( | |
<App args={args} renderFunc={({ API }) => { | |
const DappName = args.DappName; | |
return ( | |
<PrettyRequest | |
operation={ApiMethodLabel(ViewDapp.HTTP, ViewDapp.Path(DappName))} | |
resource={() => API.public.viewDapp.resource(DappName)} /> | |
) | |
}} /> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment