Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

React Starter Code

Public visualization

Viewing a saved revision (read-only)

415f18b47e5049de9d8e55ca04607994

React Starter Code

0 stars1🌍 Public
ZZoe Ferencova
Last edited Mar 9, 2023
Created on Mar 9, 2023
Forked from Smiley Beginner D3

This example shows a minimal React application that renders the text “Hello React” on a blank page. It demonstrates the basic setup for using React within an Observable-style notebook, including loading React and ReactDOM from CDN and mounting a functional component into the root DOM element. The code uses `ReactDOM.render` with a JSX component, and includes a simple CSS rule that changes the body text color to red. The visualization is a literal starting point, half way towards a smiley face, and serves as a template for building interactive charts with React.

AI-generated description

Half way towards a smiley face.