JSX - Expressions

0 votes
200 views
added Jul 17, 2019 in JSX by LC Marshal Captain (25,790 points)
<div id="elem">Hey there!</div>

<script type="text/babel">
const name = 'Muhammad';
ReactDOM.render(
    <h1>Hello {name}!</h1>,
    document.getElementById('elem'));
</script>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...