function GreetSomeone(props) {
return <div>Hello, {props.name}!</div>
}
ReactDOM.render(
<GreetSomeone name="Bob" />,
document.getElementById('app')
)
Link -> What is Virtual Dom
var name = 'jonatan';
var commentText = 'Hello!';
var avatarUrl = 'https://images.com/profile_jonatan/joni.jpg';
var avatar = <img src={avatarUrl} />;
var comment = <div className='comment'>
{avatar} @{name} {commentText}
</div>
Link -> JSX to React Elements
Link -> An iOS Developer on React Native
Link -> GitHub more starred Repositories