How would you make chatgpt.com ?
The index page has chat-box + options, center screen. When you send a message, the chat-box animates downward (the contents are gone, but any options are still selected) and the original contents are displayed as a message. The URL changes to reflect the uuid e.g,
/<uuid>
and a loading dot appears where the message will be streamed in. Right now, I'm struggling with how the chat box animates, message is kept up, URL changes, and the state is maintained even though different files are being process by the SPA—for example /chat/index.tsx
vs /chat/$id.tsx
0 Replies