🌍 Public
Viewing a saved revision (read-only)
8fd1223f7c5f4142bb2c4bdd04d47ee3
React Starter - Array render test
Four strings from a hardcoded array render as an SVG scatter plot, with each value appearing as a colored circle labeled by its corresponding text. The React component `Array` maps over the array, using a provided color scale to assign fills to circles positioned at fixed x and y offsets. The example demonstrates React’s declarative rendering with ReactDOM rendering an SVG group, translating coordinates, and using JSX to generate circle and text elements.
AI-generated descriptionReact Starter code.