├── Create App using Webpack.docx ├── CreateApp ├── React Intro.docx ├── Setup Environment for Building React Application.docx └── feb-18-notes /Create App using Webpack.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharma-NareshIT/ReactJs/d44c2d598742e5dbcc5a32a9fcf57e17e196390b/Create App using Webpack.docx -------------------------------------------------------------------------------- /CreateApp: -------------------------------------------------------------------------------- 1 | 1. Use React JS in Existing Web Application 2 | 2. Create a new React Application using Web Pack [End] 3 | 3. Create a new React Application using Templates 4 | 5 | 6 | Setup Environment for React 7 | ====================== 8 | 1. Download and Install a Package Manager 9 | NPM 10 | Yarn 11 | NuGet 12 | Download and Install "Node.js" that will provide "NPM" 13 | 14 | C:\> node -v 15 | C:\> npm -v 16 | 17 | 18 | 2. Download and Install Editor "Visual Studio Code" 19 | 20 | 21 | 3. Download and Install following extensions in VS Code 22 | 23 | - Live Server 24 | - vscode-icons 25 | - Intellisense for CSS Class Names 26 | 27 | 28 | React Tool Chain 29 | ============= 30 | A typical react application requires the following tool chain 31 | - Compiler Babel 32 | - Core Library React 33 | - Virtual DOM Library React-DOM 34 | - Web Pack 35 | - Rendering Engine / View Babel 36 | - Testing Tools 37 | 38 | 39 | Using React in Existing Web Application 40 | =============================== 41 | 1. Create a new Web Application 42 | - Create a new folder for project 43 | "C:\react-web-app" 44 | - Open Project folder in Visual Studio Code 45 | - Open Terminal 46 | >npm init -y 47 | - This generates "package.json" 48 | 49 | 2. Add following folders into project 50 | - public : static resources like html, text, images 51 | - src : dynamic resources like .js, ts, css, scss 52 | 53 | 3. Create a statup page for project 54 | 55 | public\index.html 56 | 57 |
58 | 59 | 4. Install following libraries 60 | 61 | > npm install react --save 62 | > npm install react-dom --save 63 | > npm install @babel/standalone --save 64 | 65 | 66 | 5. Link the following files to your Index page [use from UMD] 67 | 68 | react.development.js 69 | react-dom.development.js 70 | babel.js 71 | 72 | 6. Add script element in head section 73 | 74 | 132 | 133 | 134 | 145 | 146 | 147 |

React Home

148 |
149 | 150 |
151 | 152 | 153 | --------------------------------------------------------------------------------