Skip to content

Commit

Permalink
Test new generic function components
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsogarciacaro committed Apr 1, 2020
1 parent 0268a8c commit feaf9cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Samples/TodoMVC/src/TodoMVC.fs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ type TodoItem() =
]
)

let TodoFooter<'T> =
FunctionComponent.Of<{| count: int
type TodoFooter<'T>() =
inherit FunctionComponent<{| count: int
completedCount: int
onClearCompleted: unit->unit
nowShowing: string
Expand Down Expand Up @@ -277,7 +277,7 @@ type TodoApp() =
todos.Length - activeTodoCount
let footer =
if activeTodoCount > 0 || completedCount > 0 then
TodoFooter
FunctionComponent.Render<TodoFooter<_>,_>
{| count = activeTodoCount
completedCount = completedCount
nowShowing = state.current.nowShowing
Expand Down

0 comments on commit feaf9cc

Please sign in to comment.