MCPcopy
hub / github.com/dai-shi/react-tracked / TextBox

Function TextBox

examples/01_counter/src/app.tsx:55–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53};
54
55const TextBox = () => {
56 const [state, dispatch] = useTracked();
57 return (
58 <div>
59 numRendered: {++numRendered}
60 <div>
61 <span>Text: {state.text}</span>
62 <input
63 value={state.text}
64 onChange={(event) =>
65 dispatch({ type: 'setText', text: event.target.value })
66 }
67 />
68 </div>
69 </div>
70 );
71};
72
73const App = () => (
74 <StrictMode>

Callers

nothing calls this directly

Calls 1

useTrackedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…