@@ -99,12 +99,12 @@ function Thread({ messages, sendMessage }) {
{optimisticMessages.map((message, index) => (
{message.text}
- {!!message.sending && (Sending...)}
+ {!!message.sending && (Enviando...)}
))}
>
);
@@ -112,7 +112,7 @@ function Thread({ messages, sendMessage }) {
export default function App() {
const [messages, setMessages] = useState([
- { text: "Hello there!", sending: false, key: 1 }
+ { text: "¡Hola!", sending: false, key: 1 }
]);
async function sendMessage(formData) {
const sentMessage = await deliverMessage(formData.get("message"));