Skip to content

react code previewer #334

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

Open
wants to merge 5 commits into
base: staging
Choose a base branch
from
Open

Conversation

jadeshenker
Copy link

react code artifact previewer:

  • implements a Code Preview feature for code artifacts which are valid React code–when valid react code is generated, the user can toggle a slideover which renders the React component in the browser using react-live.
  • updates DEFAULT_CODE_PROMPT_RULES to give more specific instructions on how React code should be generated in order to guard against possible rendering errors

previewing valid react code:
Screenshot 2025-04-22 at 9 29 23 PM
previewing react code with syntax error:
Screenshot 2025-04-22 at 9 43 34 PM

Copy link

vercel bot commented Apr 23, 2025

@jadeshenker is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Apr 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
open-canvas ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 23, 2025 3:02pm

.yarnrc.yml Outdated
@@ -0,0 +1,8 @@
supportedArchitectures:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ooc, why did you add this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, this is a stray from troubleshooting my dev environment. removing!

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.

2 participants