4 ms·
Fair point, although yourself gave me the wrong impression initially. karax doesn't support stateful components indeed.
by planetis 6y ago
Fair point, although yourself gave me the wrong impression initially. karax doesn't support stateful components indeed.
- dom96 6y agoYou can certainly get stateful components with Karax. Perhaps I am missing something but Karax itself doesn't need any special support for them. In the code for NimForum I've laid out each component as a stateful component, one example is the `threadlist` module: https://github.com/nim-lang/nimforum/blob/master/src/frontend/threadlist.nim https://github.com/nim-lang/nimforum/blob/master/src/fronten.... You can see the `State` type defined there and all components follow this convention.