Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please implement a simple markdown file #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

colin-codegen[bot]
Copy link
Contributor

@colin-codegen colin-codegen bot commented Sep 8, 2023

Codegen PR • View Issue

For implementing the task, the most effective approach is to initially create a new markdown file in the project root directory named file.md. Then, add a line of random text to file.md. Apart from this, in the file Chat/Chat.tsx, locate the submit function. Inside this function, add a console.log('\ud83d\ude03'); statement at the beginning, which will log an emoji every time the function is called. Here is how your revised submit function should look:

const submit = async () => {
    console.log('\ud83d\ude03');
    console.log("messages", messages);
    const prevMessage = messages[messages.length - 1]?.text;
    setMessages((prevMessages) => {
      return [...prevMessages, createMessage(userInput, true)];
    });
    // ...
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants