Skip to content

Commit 42931b8

Browse files
Merge pull request #69 from tsuka/patch-1
Update todo.md
2 parents 541f0e3 + 2832a3b commit 42931b8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/tutorial/todo.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -680,11 +680,12 @@ Let's start with the `App` component. With styling it will look like this:
680680

681681
```ruby
682682
# app/hyperstack/components/app.rb
683-
class App < Hyperstack::Router
684-
history :browser
685-
route do
683+
class App < HyperComponent
684+
include Hyperstack::Router
685+
render do
686686
SECTION(class: 'todo-app') do # add the class param
687687
Header()
688+
Route('/', exact: true) { Redirect('/all') }
688689
Route('/:scope', mounts: Index)
689690
Footer()
690691
end

0 commit comments

Comments
 (0)