Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Adjacent JSX elements must be wrapped in an enclosing tag

Public visualization

Viewing a saved revision (read-only)

0ceb63570db44a3ba88cb2f603f83373

Adjacent JSX elements must be wrapped in an enclosing tag

0 stars1🌍 Public
NNita
Last edited Feb 20, 2020
Created on Feb 20, 2020

This example demonstrates that adjacent JSX elements must be wrapped in an enclosing tag by rendering a simple React component that displays squared values from a hardcoded array. The app computes squares for 15 and 25 twice within nested divs, using the `sq` helper function and mapping over an array to log results. It uses `React` and `ReactDOM` to mount the component into the root element, styled with a green background and large centered text.

AI-generated description

React Starter code.