Created
July 26, 2018 20:33
-
-
Save AcidLeroy/336ec7efab74c7aa95c2166a7aedb2f6 to your computer and use it in GitHub Desktop.
routes not working
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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