--- title: "Todo App" description: "An integrated example combining a RadiantElement host with provider-backed child components." group: Examples order: 5 --- import { RadiantTodoApp } from '@/components/radiant-todo-app'; export const config = { dependencies: { components: [RadiantTodoApp], }, }; # Radiant Todo App A `RadiantElement` host that owns a shared todo context, with child components that consume it for local interactions. The example combines three pieces: - a JSX entry that authors the provider hydration payload directly under the host - a `RadiantElement` host that owns the board view and shared context provider - `RadiantElement` child items that consume that context for toggle and remove interactions ## 1. JSX Entry The docs preview authors the host in plain JSX and seeds the provider with a typed hydration script. ```tsx import { escapeScriptJson } from '@ecopages/radiant/tools/escape-script-json'; import { createTodoSamples, type Todo } from './todo-context'; export const RadiantTodoApp = () => { const initialContext = escapeScriptJson(JSON.stringify({ todos: createTodoSamples(), } satisfies { todos: Todo[] })); return ( ); }; ``` JSON child text inside `