From 12d9085fe7d75961c225763cb4248163efc76af1 Mon Sep 17 00:00:00 2001 From: Matilda Smeds Date: Tue, 12 Sep 2017 08:09:44 +0200 Subject: [PATCH] docs: Consistent filepath comments to tutorial (#1965) --- docs/simple-application.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/simple-application.md b/docs/simple-application.md index d1763fba..cd943cc8 100644 --- a/docs/simple-application.md +++ b/docs/simple-application.md @@ -136,6 +136,7 @@ By default, Mithril views are described using [hyperscript](hyperscript.md). Hyp Let's use Mithril hyperscript to create a list of items. Hyperscript is the most idiomatic way of writing Mithril views, but [JSX is another popular alternative that you could explore](jsx.md) once you're more comfortable with the basics: ```javascript +// src/views/UserList.js var m = require("mithril") var User = require("../models/User") @@ -539,6 +540,7 @@ Currently, we're only able to navigate back to the user list via the browser bac Let's create a file `src/views/Layout.js`: ```javascript +// src/views/Layout.js var m = require("mithril") module.exports = {