docs: Consistent filepath comments to tutorial (#1965)
This commit is contained in:
parent
b26e67d1e9
commit
12d9085fe7
1 changed files with 2 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue