Expresiones JSX
// Somewhere in a React component's return value
<div>
{Math.random()}
</div>
Puzzled Puffin
// Somewhere in a React component's return value
<div>
{Math.random()}
</div>
JSX is an extension to the JavaScript language,
and therefore it can accept any valid JavaScript expressions
placed inside the curly braces.
const name = 'Josh Perez';
const element = <h1>Hello, {name}</h1>;
//notice the use of {...} to jump from jsx to javascript.
ReactDOM.render(
element,
document.getElementById('root')
);