Skip to content

Commit

Permalink
We finished!
Browse files Browse the repository at this point in the history
  • Loading branch information
jbugayev18 committed Jul 20, 2020
1 parent 2cac2af commit ce6d4b7
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
3 changes: 3 additions & 0 deletions React/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
45 changes: 45 additions & 0 deletions React/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>React Hello World</title>
</head>
<body>
<div id="application-root"></div>

<script
src="https://unpkg.com/react@16/umd/react.development.js">
</script>
<script
src="https://unpkg.com/react-dom@16/umd/react-dom.development.js">
</script>
<script
src="https://unpkg.com/babel-standalone@6/babel.min.js">
</script>

<script type="text/babel">
function App(props) {
console.log(props)
return (
<span>
My App
</span>
);
}

ReactDOM.render(
<App
className='new-class-name'
foo='bar'
boolProp={false}
numberProp={123}
objectProp={{ baz: 'buzz' }}
arrayProp={[ '3', '2', '1' ]}
/>,
document.querySelector('#application-root')
);


</script>
</body>
</html>

0 comments on commit ce6d4b7

Please sign in to comment.