question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Porting React frontend from ParlAI to Mephisto

See original GitHub issue

Hi. Apart from the switch from ParlAI to Mephisto, bootstrap-chat also uses hooks with functions instead of class components.

As per the React Documentation, classes and hooks can be used together. I have my previous code from last year written based on ParlAI class components and I would like to keep it the same way to avoid more work.

Here, @JackUrb mentioned that this only needs a bit of the modification to wrap around bootstrap-chat. I am guessing he had the same thing in mind (keep the class components intact).

Can someone please elaborate on that? What parts does one need to modify for porting the React frontend for mephisto & bootstrap-chat, if one wants to keep using the class components? Can it lead to some issues?

I am still learning React on the go! Any leads would be helpful.

Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
JackUrbcommented, Sep 22, 2021

Correct, what comes through will be read as an “act” from the agent, even when sent from the mephistoContext directly.

1reaction
kushalchawlacommented, Sep 22, 2021

Hey Jack. No, I am not. Just sending the form inputs back to the server and storing there. If there is some info that ends up in the chat later on, that can be done from the server using .observe() right…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mephisto/README.md at main - GitHub
We suggest copying the one present at mephisto/abstractions/blueprints/parlai_chat/webapp/package.json . Custom frontend bundles. Custom frontend bundles can be ...
Read more >
Running crowdsourcing tasks — ParlAI Documentation
This tutorial provides more in-depth information on setting up and configuring crowdsourcing tasks. It is recomended to install Mephisto via poetry to avoid ......
Read more >
Working on a custom task - mephisto.ai
We'll extend from the static react task example, but we'll want to move it to it's own workspace. From within the main Mephisto...
Read more >
Porting a React Frontend to TypeScript - Execute Program
I decided on TypeScript because: TypeScript is a superset of JavaScript, so porting to it is easy. Reversing a port is even easier:...
Read more >
Untitled
Find a one-night stand or a hookup you can also hang out with. Which dating site is best for serious relationships? What is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found