2 ms·
Can you point to a code sample using lenses?
by wonger_ 1y ago
Can you point to a code sample using lenses?
- laszlokorte 1y agoThis is a very simple example in svelte [1] This is very detailed introduction and documetation of a lense-based architecture in react. [2] At the first glance it looks kind of overwhelming but it contains lots of examples. This is a case study of many rather complex components. [3] The codinsteade is rather quick and dirty hacked together and at the first glance not really readable but thats kind of the point: even complex components can simply be composed locally from many small parts of requiring some global controller managing the state and keeping it consistent. 1: https://svelte.dev/playground/ea842faa235540bba43d7970ecf8ce1a?version=5.43.0 https://svelte.dev/playground/ea842faa235540bba43d7970ecf8ce... 2: https://github.com/calmm-js/documentation/blob/master/introduction-to-calmm.md https://github.com/calmm-js/documentation/blob/master/introd... 3. https://github.com/laszlokorte/svatom?tab=readme-ov-file https://github.com/laszlokorte/svatom?tab=readme-ov-file