Skip to main content

Syntax

This is what the language looks like.

knot
import { JSX };
const APP_NAME = "My App";
func emailSignup -> {};
view App -> <section>
<h1>{APP_NAME}</h1>
<main>
<h2>Welcome to the coolest page on the web</h2>
<button onClick=emailSignup>Sign up for our email chain!</button>
</main>
</section>;
main func mount(id: string) -> JSX.render(<App />, id);
knot
import { JSX };
const APP_NAME = "My App";
func emailSignup -> {};
view App -> <section>
<h1>{APP_NAME}</h1>
<main>
<h2>Welcome to the coolest page on the web</h2>
<button onClick=emailSignup>Sign up for our email chain!</button>
</main>
</section>;
main func mount(id: string) -> JSX.render(<App />, id);