Created by
<head>
<title>Simplest React App</title>
<script type="text/javascript" src="https://unpkg.com/react@latest/umd/react.production.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/react-dom@latest/umd/react-dom.production.min.js"></script>
</head>
<body>
<div id="root"></div>
<script type="text/javascript">
"use strict";
ReactDOM.render(
React.createElement("h1", null, "Hello, world!"),
document.getElementById('root')
);
</script>
</body>
# create the project folder
mkdir simplest-react-app
# go into project folder
cd simplest-react-app/
# initialise a new node project
npm init -y
# install react
npm install react react-dom
create-react-app
create-react-app
allows you to abstract from the the tooling and configuration, and to focus to the application implementation
npx create-react-app hello-world
# and follow the instructions
# clone the demo code to your computer:
git clone https://github.com/WWWCourses/react-todo-app
# navigate to project folder:
cd react-todo-app
# install node modules:
npm install
# start the app:
npm start
These slides are based on
customised version of
framework