Which is the most popular?
ReactDOM.render(
React.createElement(
'h1',
null,
'Hello World'
),
document.getElementById('app')
);
//JSX syntax extension example
ReactDOM.render(
<h1>Hello World, this is written in JSX!</h1>,
document.getElementById('app')
);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="css/styles.css">
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.2/browser.min.js"></script>
</head>
<body>
<div id="app"></div>
<script src="js/app.js" type='text/babel'></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en" ng-app="">
<!-- ng = angular working with app in angular -->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Angular JS Intro</title>
<link rel="stylesheet" href="css/styles.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.7/angular.min.js"></script>
</head>
<body>
<input type="text" ng-model='name'>
<div>Hello {{ name }}</div>
<div ng-bind='name'></div>
<script src="js/app.js"></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Intro</title>
<link rel="stylesheet" href="css/styles.css">
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
<div id="main">
{{ msg }}
</div>
<script src="js/app.js"></script>
</body>
</html>
new Vue({
el: '#main',
data: {
msg: 'Hello World'
}
});