Skip to content

Instantly share code, notes, and snippets.

@AcidLeroy
Created July 26, 2018 20:33
Show Gist options
  • Save AcidLeroy/336ec7efab74c7aa95c2166a7aedb2f6 to your computer and use it in GitHub Desktop.
Save AcidLeroy/336ec7efab74c7aa95c2166a7aedb2f6 to your computer and use it in GitHub Desktop.
routes not working
var html = require('choo/html') // 1.
var choo = require('choo')
var app = choo() // 2.
app.route('/', function(state, emit) { // 3.
return html`
<body> <!-- 4. -->
Hello World
</body>
`
})
app.route('/stuff/', function(state, emit) { // 3.
return html`
<body> <!-- 4. -->
puppies
</body>
`
})
app.mount('body')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment