React in ChatGPT is a Chrome Extension that lets you render React components with tailwindcss directly in ChatGPT
demo.webm
- Install the Chrome Extension
- Go to ChatGPT
- Ask ChatGPT to write a React component for you (e.g. "Write a simple React component for a SignUpForm with tailwindcss")
- Click the "Render component" button next to the "Copy code" button
- Clone the repository
- Run
npm install
- Run
npm start
- Go to chrome://extensions in your browser
- Enable the developer mode
- Click "Load unpacked" button and select the
/build
folder
- Run
NODE_ENV=production npm run build
- 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.