Skip to content

React in ChatGPT is a Chrome Extension that lets you render React components in ChatGPT

License

Notifications You must be signed in to change notification settings

woniesong92/react-in-chatgpt

Repository files navigation

React in ChatGPT

React in ChatGPT is a Chrome Extension that lets you render React components with tailwindcss directly in ChatGPT

Demo

demo.webm

Quickstart

  1. Install the Chrome Extension
  2. Go to ChatGPT
  3. Ask ChatGPT to write a React component for you (e.g. "Write a simple React component for a SignUpForm with tailwindcss")
  4. Click the "Render component" button next to the "Copy code" button

Development

  1. Clone the repository
  2. Run npm install
  3. Run npm start
  4. Go to chrome://extensions in your browser
  5. Enable the developer mode
  6. Click "Load unpacked" button and select the /build folder

Build

  1. Run NODE_ENV=production npm run build
  2. Submit the contents in the /build following the official publishing guide

Note that only the changes in the Popup component are hot reloaded. For changes in other surfaces (e.g. Content Script), you have to reload the chrome extension and refresh the webpage to see the changes in effect.

References

About

React in ChatGPT is a Chrome Extension that lets you render React components in ChatGPT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published