這個頁面還沒有繁體中文版,先以英文顯示。

How to open a JSX file from Claude: in a browser, on iPhone, and on Mac

Quick answer

To open a JSX file from Claude, open Convika's free React viewer in your browser, click Open file, and choose the .jsx file. The app runs on the page with its buttons working, with no install and no build, on an iPhone, a Mac, or a Windows PC. A .jsx file holds a React component, which a browser shows as code until it is compiled. The viewer compiles it in your browser, then gives you one .html file to download or a link to send.

Get a link for my app

Pro starts with a free trial: 7 days free, then $12 a month. Cancel any time before the trial ends.

On this page

To open a JSX file from Claude, open Convika's free React viewer in your browser, click Open file, and choose the .jsx file. The app Claude built runs on the page, with its buttons, inputs, and charts working. You install nothing and build nothing, and it works the same on an iPhone, a Mac, and a Windows PC.

A .jsx file holds a React component: the code of the calculator, quiz, dashboard, or game you asked Claude for. Claude's artifact panel compiles that code and shows the running app. A browser tab and a text editor show the code itself. The React viewer does the compiling in your browser, so the file opens as the app.

Open a JSX file from Claude in a browser in 3 steps

These steps are the same in Chrome, Safari, Edge, and Firefox.

1. Open the React viewer

Go to convika.com/tools/react-viewer. It's free and needs no account.

2. Click "Open file" and choose the .jsx file

Click Open file, then Choose a .jsx or .tsx file, and pick the file. On a computer you can also drop the file on the box. The viewer opens .jsx, .tsx, .js, and .ts files up to 2 MB. The file opens on the page and is not uploaded: your browser compiles it on your device.

3. Use the app, then keep it

The app runs in a frame on the page. Click its buttons and type in its fields. Switch Width to Phone to see it at a phone's size. Then keep it in one of 2 ways:

  • Download as .html saves the app as one HTML file that opens in any browser that is online.
  • Get a link by uploading this app gives you a private link that works for 3 minutes, with no signup.

No file, only the artifact in Claude? Copy the artifact's code, click Paste code in the viewer, paste it, and click Run the code.

On iPhone

  1. Save the file to Files. Anthropic's file creation guide says of the Claude app: “when you tap "Download" on Claude Mobile, the file will open in either the system preview or a separate app.” That preview is not the running app. Save the file to the Files app from there. A file you downloaded in Safari is already in Files, under Downloads.
  2. Open the React viewer in Safari. Go to convika.com/tools/react-viewer.
  3. Tap "Open file", then "Choose a .jsx or .tsx file", and pick the file in the Files sheet. The app runs in Safari.

To skip the file, copy the code in the Claude app, tap Paste code in the viewer, paste, and tap Run the code.

Apple's Files guide for iPhone says what tapping the file in Files does: “If you haven’t installed the app that created a file, a preview of the file opens in Quick Look.”

On Mac

Double-clicking a .jsx file hands it to whichever app your Mac has set for that file type, which reads it as code. Open the app Claude built this way:

  1. Open convika.com/tools/react-viewer in Safari or Chrome.
  2. Click Open file, then drag the .jsx file from Finder or your Downloads folder onto the box.
  3. The app runs. Click Download as .html to keep a file that opens with a double-click in any browser.

To read or edit the code instead, Apple's Mac guide gives the steps: “Control-click the file, choose Open With, then choose an app.”

What each way of opening a .jsx file shows

Way to open itWhat you seeThe app works
Choose it in Convika's React viewerThe running appYes
Paste its code into the React viewerThe running appYes
Double-click it on a Mac or a PCThe code, in the app set for that file typeNo
Drag it into a browser tabThe code, as textNo
Tap it in Files on iPhoneA Quick Look preview of the fileNo
Rename it to .htmlThe code, as text on a pageNo

We ran it on November 22, 2026, in Playwright's Chromium 156 at 1280 × 900 and in its WebKit 27.2 at an iPhone 15's size, with a tip calculator saved as TipCalculator.jsx: one component with a useState hook, Tailwind classes, a number field, and a button. Chosen with Open file in the React viewer, the calculator ran in both: the heading took its Tailwind colour, and one click on the button moved the tip from $6.00 to $8.00. Download as .html saved a 15 KB TipCalculator.html, which ran the same when opened from disk. Opened as an address in the browser, the .jsx file itself showed its code as text, starting with import { useState } from "react";.

What the React viewer runs

The viewer loads the libraries Claude's React artifacts use:

  • React 18 with its hooks, such as useState, useEffect, and useReducer
  • Tailwind classes, with shadcn/ui's colours such as bg-primary
  • lucide-react icons and recharts charts
  • shadcn/ui's @/components/ui files: Card, Button, Input, Tabs, Select, Slider, Switch, Dialog, and more
  • Other npm packages the code imports by name, such as framer-motion, d3, or lodash
  • TypeScript: a .tsx file opens the same way

The viewer shows an error with the line of your code it is on. If the error names another file, such as ./Chart, the app was written across several files. Paste this into the same chat with Claude, then open the new file:

Put the whole app in one .jsx file, with every component in that file.

Get a link by uploading this app makes a private link that works for 3 minutes: time to open the app on your phone. For a link that stays the same, publish the app:

  1. In the React viewer, click Download as .html.
  2. Open Convika's free HTML publishing tool and drop the file in. You get a preview link without an account.
  3. Click Keep this page — free, no card and sign up. The page moves into your account, and its scripts run in the dashboard preview.
  4. Click Publish page. Under Who can open this page?, choose Public and click Next. The first time you publish, Convika shows Publish free, and under it Publish without the Convika bar, which starts Pro with its free trial: 7 days free, then $12 a month, and you can cancel any time before the trial ends. To publish on Free, click Publish free.
  5. Copy the address, such as yourapp.convika.page, and send it. Anyone opens it in a browser and uses the app, with no Claude account.

The Free plan includes 1 published page and 10,000 page views a month, and the dashboard shows how many people opened the app. How to publish a Claude artifact covers your own domain and a form that keeps what people send.

Frequently asked questions

How do I open a JSX file in a browser?

Open Convika's free React viewer in the browser, click Open file, and choose the .jsx file. The viewer compiles the component in your browser and runs the app on the page. Dragging the file straight into a browser tab shows its code as text, because a browser reads HTML, not JSX.

How do I open a JSX file on iPhone?

Save the file to the Files app, open convika.com/tools/react-viewer in Safari, tap Open file, then Choose a .jsx or .tsx file, and pick the file. The app runs in Safari with no app to install. You can also copy the code in the Claude app and paste it into the viewer with Paste code.

How do I open a JSX file from Claude on a Mac?

Open convika.com/tools/react-viewer in Safari or Chrome, click Open file, and drag the .jsx file from Finder onto the box. The app runs in the browser. Double-clicking the file opens its code instead. To pick the app that opens it, Apple's Mac guide says to Control-click the file and choose Open With.

What is a JSX file from Claude?

It is the code of a React component: the app Claude built for you, written in JavaScript with HTML-like tags inside it. Anthropic's file creation guide lists “HTML or react apps” among the artifacts Claude creates. Claude's artifact panel runs that code for you. Outside Claude, the React viewer runs it.

Why does my JSX file show code instead of the app?

A .jsx file has to be compiled before a browser can run it, and its imports point to npm packages such as React. A browser tab and a text editor do none of that, so they show the code. Choose the file in the React viewer and it runs as the app.

How do I convert a JSX file to HTML?

Choose the file in the React viewer and click Download as .html. You get one HTML file with your component in it, compiled. It loads React and the libraries from public CDNs, so it opens in any browser that is online, and any host takes it.

Is the JSX file uploaded when I open it?

No. Your browser compiles the code and builds the page on your device. The app is uploaded only when you click Get a link by uploading this app.

Can I open a .tsx file the same way?

Yes. The React viewer opens .jsx, .tsx, .js, and .ts files. It strips the TypeScript types and runs the component.

Sources

Next step

How to password protect an HTML page or website

A JavaScript password script leaves the password in the page source. To password protect an HTML page or link, encrypt the file or let a server check it.

Related articles

More ways to send your page

Skipbox

Cheap & fast GitHub Actions runners, unlimited for $39 a month

Your own machine keeps Docker layers and package caches between jobs. Switch by changing one runs-on line.

Start a free Skipbox trial⁠

Share this article

Send the app Claude made as a link

Run the .jsx file in the React viewer, download it as one .html file, and publish it. Anyone opens the link in a browser and uses the app, with no Claude account.

Get a link for my app

Pro starts with a free trial: 7 days free, then $12 a month. Cancel any time before the trial ends.