diff --git a/docs/docs/cloud/how-tos/use_stream_react.md b/docs/docs/cloud/how-tos/use_stream_react.md index 0468b9bb9..ee62fcaff 100644 --- a/docs/docs/cloud/how-tos/use_stream_react.md +++ b/docs/docs/cloud/how-tos/use_stream_react.md @@ -1,8 +1,6 @@ # How to integrate LangGraph into your React application -!!! info "Prerequisites" - - [LangGraph Platform](../../concepts/langgraph_platform.md) - - [LangGraph Server](../../concepts/langgraph_server.md) +!!! info "Prerequisites" - [LangGraph Platform](../../concepts/langgraph_platform.md) - [LangGraph Server](../../concepts/langgraph_server.md) The `useStream()` React hook provides a seamless way to integrate LangGraph into your React applications. It handles all the complexities of streaming, state management, and branching logic, letting you focus on building great chat experiences. @@ -169,10 +167,7 @@ The `useStream()` hook exposes the `interrupt` property, which will be filled wi Learn more about interrupts in the [How to handle interrupts](../../how-tos/human_in_the_loop/wait-user-input.ipynb) guide. ```tsx -const thread = useStream< - { messages: Message[] }, - { InterruptType: string } ->({ +const thread = useStream<{ messages: Message[] }, { InterruptType: string }>({ apiUrl: "http://localhost:2024", assistantId: "agent", messagesKey: "messages", @@ -182,7 +177,6 @@ if (thread.interrupt) { return (
Interrupted! {thread.interrupt.value} -