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