20CAKE20.JS
04-state

State

14

04-state/12-cell.tsx

Cell

Example

Official Cake20 View example for cell.

const count = cell(0);

export default () => <Button onClick={() => count(count() + 1)}>Standalone state: {count()}</Button>;