I'm new to go-app and this library is very fascinating but here's what I understand about the Render() and OnClick() methods.
Render()
is called on the server side, so you can execute code to write a new file on the server itself. While the OnClick()
is executed on the client side and no longer has access to the server to create a new file.