html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<title>React .</title>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<script crossorigin src="https://unpkg.com/react@16.7.0-alpha.0/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16.7.0-alpha.0/umd/react-dom.development.js"></script>
<link rel="stylesheet" href="./app.css">
</head>
<body>
<div id="root">loading</div>
<script type="text/babel">
//import "./app.css";
//type="module" in script
const style = {
header:{textDecoration: "underline"},
}
const App = () => {
return (
<div>
<h1 style={style.header}>React skill.</h1>
<h2 style={{color:"red"}}>Styling in React</h2>
<p>Should be lightblue-colored text.</p>
</div>
);
}
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
body {
}
div p {
color: Blue;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run