---
url: /api/kiln/browser/functions/boot.md
---
[Kiln API](../../../index.md) / [kiln/browser](../index.md) / boot

# Function: boot()

```ts
function boot(main, canvasArg?): Promise<App | undefined>;
```

Starts the game in the browser and wires up hot reload. Returns the running app.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `main` | [`MainFn`](../type-aliases/MainFn.md) |
| `canvasArg?` | `HTMLCanvasElement` | `null` |

## Returns

`Promise`<[`App`](../../classes/App.md) | `undefined`>
