Re:React Agent Hooks
by osmoscraft on Friday April 11, 2025 @11:11AM
(#43654711)
React turns out to be a powerful tool to management the state of anything hierarchical and dynamic.
For the UI, we can show stuff dynamically with JSX; and the JSX would include actions that let user modify the state; the updated the state would trigger a re-rendering of UI to reflect the latest the state.
What if we can apply this paradigm to model Human + AI interacting with a shared piece of state? We can let React and LLM see the same state and use the same tools to change that change.
For the UI, we can show stuff dynamically with JSX; and the JSX would include actions that let user modify the state; the updated the state would trigger a re-rendering of UI to reflect the latest the state.
What if we can apply this paradigm to model Human + AI interacting with a shared piece of state? We can let React and LLM see the same state and use the same tools to change that change.