Skip to main content
100%

Random world shapes with react - 1

✓ Published1🌍 Public
NNita
Last edited Jun 29, 2022
Created on Jun 28, 2022
Forked from React Starter

This example displays 490 randomly positioned circles and squares scattered across a 960-by-500 SVG canvas, with each shape’s stroke width also randomized. Using React 16 and ReactDOM, the App component generates an array of scaling values and maps them to a custom My_circle component, which renders both a circle and a rectangle per iteration with coordinates calculated via Math.random(). The visualization demonstrates lightweight SVG rendering with React’s component-based approach, producing a chaotic, non-interactive abstract composition.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes