doc
This commit is contained in:
parent
3cfc1c4705
commit
430bab5282
@ -51,7 +51,9 @@ export const App = () => {
|
|||||||
return (
|
return (
|
||||||
<div key={item.id}>
|
<div key={item.id}>
|
||||||
<p>{item.title}</p>
|
<p>{item.title}</p>
|
||||||
<span class="small">{item.description}</span>
|
<span class="small">
|
||||||
|
{item.description}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
@ -85,7 +87,10 @@ action Init = do
|
|||||||
app = mkComponent
|
app = mkComponent
|
||||||
{ initialState: StateEmpty
|
{ initialState: StateEmpty
|
||||||
, render: renderApp
|
, render: renderApp
|
||||||
, eval: mkEval (defaultEval {handleAction = action, initialize: Just Init})
|
, eval: mkEval ( defaultEval { handleAction = action
|
||||||
|
, initialize: Just Init
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user