Skip to main content
100%

Javascript inside html

✓ Published2🌍 Public
NNita
Last edited Feb 21, 2020
Created on Feb 20, 2020

This example shows a React application that mixes JavaScript expressions with JSX and SVG to display computed values and simple circle shapes. It defines a `Test` component that maps an empty array to green circles, while the main `App` component renders squared numbers and nested squares as text, alongside SVG circles with calculated radii and explicit positions. The code uses React 16.10 UMD libraries, ReactDOM, and inline SVG, drawing a magenta circle at fixed coordinates and a default-position black circle. The page displays a 960×500 SVG canvas on a light green background.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes