20CAKE20.JS
01-basic

Basics

10

01-basic/03-two-way.tsx

Two Way

Example

Official Cake20 View example for two way.

export const data = {
  name: "CAKE20",
};

export default () => (
  <main class="space-y-3 p-8">
    <input class="rounded border p-2" bind={data.name} />
    <p>Entered name: {data.name}</p>
  </main>
);