mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
example
This commit is contained in:
@@ -18,8 +18,8 @@ const Fibonacci = Stateful({
|
||||
getInitialState: () => ({index: 0}),
|
||||
|
||||
handlers: {
|
||||
prev: ({index}) => ({index: index - 1}),
|
||||
next: ({index}) => ({index: index + 1}),
|
||||
prev: ({index}, event) => ({index: index - 1}),
|
||||
next: ({index}, event) => ({index: index + 1}),
|
||||
},
|
||||
|
||||
render: (props, state, handlers) =>
|
||||
|
||||
Reference in New Issue
Block a user