Unit5 Pure React
Unit5 Pure React
Pure React
Version Checking
TO START THE REACT SERVER
Setup
• Setup Test.js
• Serviceworker.js
• Logo.svg
• Gitignore
• Package.lock.\js
• App.js These files can be
• App.css delete
• App.test.js
• Robot Task- what is <noscript>
• Manifest
• favicon
Page
Setup
• To work with React two libraries we need to import
• React
• React DOM
• Both can be used with the help of CDN
• React Library is used to create views
• React Dom is used for the UI in the Browser.
IMPORTING CDN’s
Files in React-
Package.json- contain information regarding name, version, private, reflect how many
dependencies are there in this react’s project.
If to share the project with someone just you need to share package.json because it
contain version used in the project.
Importing the files
HTML DOM is basically used to
create the Nodes.
• What is DOM ?
• Document HTML Document File
• Object title, body, url
• Model Collection and arrangement of HTML tags
• If to call a particular object of a document [document.title]
• It will display the content of a title
• Calling the particular object of the class.
Virtual DOM
• In every javascript DOM having corresponding virtual DOM.
• Virtual DOM is basically the clone of the DOM.
• If any changes done in the DOM, it should be done in virtual DOM instead
of doing in real/original DOM.
• If heavy changes/ maximum changes is in the single tag then that changes
will be done in virtual DOM then it will render after that final changes
done in the real DOM.
React Component
React Component