Skip to content

Instantly share code, notes, and snippets.

@h4091
Last active December 28, 2018 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h4091/62bd5cb0e51775b2dac7c1597df8d789 to your computer and use it in GitHub Desktop.
Save h4091/62bd5cb0e51775b2dac7c1597df8d789 to your computer and use it in GitHub Desktop.
Test15
<div id="root"></div>
const numbers = [1,2,3,4,5];
const listItems = numbers.map((number) =>
<li>{number}</li>
);
ReactDOM.render(
<ul>{listItems}</ul>,
document.getElementById("root")
);
<script src="https://unpkg.com/react/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom/umd/react-dom.development.js"></script>

Test15

Learn the fundamentals of React, including simple and class components, state, props, and submitting form data.

Rendering Multiple Components

A Pen by 你银子掉了 on CodePen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment