Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 309 Bytes

The Main Component

To display anything on the screen you need to define the Main component. Anything it returns from its render function will be shown.

Here we render a button on the screen:

component Main {
  fun render : Html {
    <button>
      <{ "Click ME!" }>
    </button>
  }
}