Setting up the application
"Shawn, we were using JSBin up to this point. But now we will create the app locally. We will use the following directory structure for our code:"
$ tree -L 1 . ├── LICENSE ├── README.md ├── index.html ├── node_modules ├── package.json ├── server.js ├── src └── webpack.config.js 2 directories, 6 files
- The
srcdirectory will contain all of the React components - The
webpack.config.jsandserver.jsfile will be used for setting up local development server using webpack. - The
package.jsonfile will be used to contain information about all of the npm packages used by us - The
index.htmlfile will be the starting point of the app
"Let's see our index.html file."
// index.html
<html>
<head>
<title>Forms in React</title>
<link rel="stylesheet"...