Skip to content

Instantly share code, notes, and snippets.

@Jand42
Created July 12, 2016 16:00
Show Gist options
  • Select an option

  • Save Jand42/1c5b7d6f0dde1441185649877e198efd to your computer and use it in GitHub Desktop.

Select an option

Save Jand42/1c5b7d6f0dde1441185649877e198efd to your computer and use it in GitHub Desktop.
gist load test for try.ws
using WebSharper;
using WebSharper.JavaScript;
using WebSharper.UI.Next;
using WebSharper.UI.Next.Client;
using static WebSharper.UI.Next.CSharp.Client.Html;
namespace Samples {
[JavaScript]
public class Program
{
[SPAEntryPoint]
public static void Main()
{
var welcomeText = Var.Create("Welcome gist import");
div(
p(welcomeText),
button(
"Click Me!",
() => { welcomeText.Value = "Hello, world!"; }
)
).RunById("main");
}
}
}
<html>
<head>
<title></title>
</head>
<body>
<div id="main"></div>
<!--[BODY]-->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment