You could use StackBlitz. It's great platform to build things online. You can create React project without installation, and you can copy and paste the snippets of code your are trying to view from the book.

Answer from Lucepall on Stack Overflow
🌐
Playcode
playcode.io › react
React Playground - Online React Editor & Compiler Free
This React playground has everything: JSX support, multiple files, npm packages, and it's fast. I've switched from CodeSandbox because this React online editor just feels snappier.
Help Center
Find answers to common questions, learn how to use PlayCode features, and get help with your projects.
Pricing
Build websites with AI. From idea to live site in minutes. No coding needed. Starting at $25/month.
AI Website Templates
Professional website template. Customize with AI - just describe what you want to change.
AI Website Builder
AI website builder that creates your website in minutes. Describe what you need, AI builds it. Visual editing, custom domains, full code access. No coding required.
🌐
W3Schools
w3schools.com › react › react_jsx.asp
React JSX
With JSX you can write expressions inside curly braces { }. The expression can be a React variable, or property, or any other valid JavaScript expression.
Discussions

reactjs - How to View React.js pages in the browser - Stack Overflow
Sounds like a really stupid question, but I'm new to React and I learned to create react apps with the CDN Links and the "npx create-react-app" functions. Now, I have the files that suppo... More on stackoverflow.com
🌐 stackoverflow.com
.jsx in browser
Browsers don't understand jsx More on reddit.com
🌐 r/react
20
0
May 2, 2025
reactjs - Can I live preview React components in VSCode? - Stack Overflow
New to React. I have been using live server for html files in VS Code but I can't seem to find the same functionality for React components (.js files). Maybe it's obvious or I'm looking for the wrong More on stackoverflow.com
🌐 stackoverflow.com
reactjs - Display JSX file in Chrome instead of downloading it - Stack Overflow
When I click a .JSX file in Chrome it downloads it. How can I display the .JSX file in the browser like a regular .JS file. Example If I browse http://todomvc.com/examples/react/#/ from Chrome an... More on stackoverflow.com
🌐 stackoverflow.com
🌐
OneCompiler
onecompiler.com › react
ReactJS Online Editor & Compiler
OneCompiler's ReactJS online playground helps you to write, compile, run and view ReactJS code online. It have all the features like auto-completion, syntax highlighting, etc.
🌐
JSX Tool
jsxtool.com
JSX Tool - React Dev Tools for Styling
JSX Tool bridges the gap between the Element Inspector and React's Component Selector to give you the best of both worlds. JSX Tool is like an IDE for styling React in your browser.
🌐
CodeSandbox
codesandbox.io › s › react-file-viewer-0uysf
React File Viewer - CodeSandbox
August 20, 2019 - React File Viewer by LongMacchiato using itsa-react-docviewer, react, react-dom, react-file-viewer
Published   Jun 24, 2019
Author   LongMacchiato
🌐
React
legacy.reactjs.org › docs › introducing-jsx.html
Introducing JSX – React
These new documentation pages teach modern React and include live examples: ... This funny tag syntax is neither a string nor HTML. It is called JSX, and it is a syntax extension to JavaScript. We recommend using it with React to describe what the UI should look like.
Find elsewhere
🌐
GitHub
github.com › HN-Tran › jsx-viewer
GitHub - HN-Tran/jsx-viewer: Lightweight desktop app to preview JSX/TSX files — drag and drop, instant render, built-in shadcn/ui + Tailwind + Recharts
A lightweight desktop app to preview JSX and TSX files. Drag and drop a .jsx or .tsx file and see it rendered instantly — no setup, no dev server, no configuration. Built for previewing React components exported from AI tools like Claude, ...
Author   HN-Tran
🌐
SVG Viewer
svgviewer.dev › svg-to-react-jsx
Convert SVG to React JSX - SVG Viewer
Download JSX · SVGViewer · EditExport · -1px x -1px · Change dimensions · Optimize · 578 bytes · 493 bytes-15% Prettify · Preferences · Clear · Upload · CopyDownloadShare · PreviewReactReact NativePNGData URI ·
🌐
Vercel
reactplayground.vercel.app
React Playground
URL-based React Playground. Craft, experiment, and collaborate with ease using our sandbox. Build, test, and share your concepts hassle-free. No need for sign-in: your creations are stored directly in the URL.
🌐
GeeksforGeeks
geeksforgeeks.org › reactjs › reactjs-jsx-introduction
React JSX - GeeksforGeeks
JSX is a powerful syntax extension in React that makes writing and managing UI components easier and more readable.
Published   January 22, 2026
🌐
Nutrient
nutrient.io › blog › sdk › how to build a reactjs file viewer
React file viewer: Display PDFs, images, and Office documents in your app
July 7, 2025 - Build a React file viewer with Nutrient Web SDK to display PDF documents, images, and Office files entirely in the browser — no server or Microsoft Office required. After creating a Vite‑powered React project, you’ll install the SDK, copy its WebAssembly assets, and load any .pdf, .docx, .pptx or image file with a single NutrientViewer.load() call.
Top answer
1 of 4
4

Couldn't find a satisfactory solution and not willing to invest too much. Storybook looks like I'd have to change my code and because I'm still relatively new to react, not sure I'm up for that.

I'm just letting VSCode restart server each time I save a change then going to the browser and clicking through the menus to get to the page I'm working on.

For more complex ui changes, I'll create a code sandbox mini react app and just work on that for, like css changes, etc.

UPDATE: I've implemented Storybook and I like it. After following the doc to install it I saw that I just needed to create a file (story) for a component like MyComponent.stories.js and put in the few lines of code to import and use it, passing in whatever props I wanted to see.

I decided to put my stories files into a separate separate stories folder under src. Here's an example for a Details component:

import React from 'react';
import { action } from '@storybook/addon-actions';
import Details from '../Details';

// How to display the component in Storybook page
export default {
  title: 'Details',
  component: Details,
  // Our exports that end in "Data" are not stories.
  excludeStories: /.*Data$/
};

// Props passed into component
export const recordData = {
  record: {
    id: '1',
    createdOn: '2020-04-20 4:07 PM',
    createdBy: 'dgarv',
    modifiedOn: '2020-04-20 4:07 PM',
    modifiedBy: 'dgarv',
  }
};

// Use the actual component
export const Default = () => <Details {...recordData} />;
2 of 4
2

You don't have to change your code when using storybook. You just have to write new files, that import your component. Then you can pass it fake props to see how it behave depending in many scenarios. If you use create-react-app, it super easy to install, if you have your own config, then your level is good enough to follow their tutorial. The files are formatted like this: MyComponent.stories.js . Then storybook will look at all files that contains "stories" in their name, and launch them on port 6006 when you write yarn/npm run storybook in your terminal. I highly recommend storybook, it is used by most of companies.

🌐
React
react.gg › visualized
React, visualized – react.gg
React, Visualized – A visual exploration of core React concepts
🌐
NextLeap
nextleap.app › online-compiler › reactjs-programming
React Online Compiler | Code, Compile, and Debug React Apps - NextLeap
Experience the power of React with NextLeap's Online Compiler. Write, compile, and debug React applications online in real-time. Boost your productivity and enhance your React development workflow with our intuitive platform.
🌐
StackBlitz
stackblitz.com › edit › try-react-file-viewer
Try React File Viewer - StackBlitz
Starter project for React apps that exports to the create-react-app CLI.