import { createSignal } from "solid-js"; export function SolidApp(props) { // Local state for optimistic updates or other UI-only logic const [isUpdating, setIsUpdating] = createSignal(false); const increment = () => { setIsUpdating(true); props.push("increment", {}); }; const decrement = () => { setIsUpdating(true); props.push("decrement", {}); }; // Reset updating flag when state changes from server // (In a real app, you might use a more sophisticated approach) return (
This UI is rendered by Solid.js. Changes are synced back to Elixir via push_event.