Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebSharper 3.4 with working HelloWorld example?

Tags:

f#

websharper

The current HelloWorld example on websharper.com doesn't work anymore due to changes made in WebSharper 3.4. It now requires some attributes and other stuff to compile correctly.

I am just getting started with WebSharper and I would like to see a minimum (html+javascript client-side hello world) example that works. Any help would be appreciated!

like image 415
Zaid Ajaj Avatar asked Feb 15 '26 09:02

Zaid Ajaj


1 Answers

The samples on the website use Html.Client (the HTML language soon to be retired in favor of UI.Next), so to run them you need to start from a template that isn't based on UI.Next.

Following the instructions here, I was able to run them without any issues, extra attributes, etc.

like image 93
Adam Granicz Avatar answered Feb 17 '26 04:02

Adam Granicz