SlideShare a Scribd company logo
React JS
The following topics will be covered in our
React JS
Online Training:
Copyright @ 2015 Learntek. All Rights Reserved. 2
What is React JS?
• React JS Training- React JS basically is an open-source JavaScript library
which is used for building user interfaces specifically for single page
applications. It’s used for handling view layer for web and mobile apps.
React also allows us to create reusable UI components.
• It can be used with a combination of other JavaScript libraries or
frameworks, such as Angular JS in MVC.
Copyright @ 2015 Learntek. All Rights Reserved. 3
Why React?
▪ Easy to learn
Anyone with a basic previous knowledge in programming can easily
understand React. For react you just need basic knowledge of CSS and
HTML.
▪ Native Approach
React can be used to create mobile applications (React Native). And React
is a follows reusability, meaning extensive code reusability is supported.
Copyright @ 2015 Learntek. All Rights Reserved. 4
…Continues…
▪ Data Binding
React uses one-way data binding and an application architecture called
Flux controls the flow of data to components through one control point –
the dispatcher. It’s easier to debug self-contained components of large
ReactJS apps.
▪ Performance
React does not offer any concept of a built-in container for dependency.
Copyright @ 2015 Learntek. All Rights Reserved. 5
Training Topics
• React Js Training -Who Is This Course For?
• How Is This Course Different from the React and Flux course?
• Why Redux?
Copyright @ 2015 Learntek. All Rights Reserved. 6
Environment Setup
• Environment Overview
• Versions Used in This Course
• Hot Reloading
• Install Node
• Create package.json
• Editors
• Install npm Packages
• Introduce npm Scripts
• Create src Directory
• Set up Webpack
• Set up editorconfig
• Set up Babel
• Set up Express
• Create Start Script
• Create Start Message
• Set up ESLin
• Create Parallel Scripts
• Set up Testing
• Add Test Scripts
Copyright @ 2015 Learntek. All Rights Reserved. 7
React Component Approaches
• Four Ways to Create React Components
• ES5 Create Class Component
• ES6 Class Component
• ES5 Stateless Component
• ES6 Stateless Component
• When Should I Use Each Style?
• Other Ways to Create Components
• Container vs. Presentation Components
Copyright @ 2015 Learntek. All Rights Reserved. 8
Initial App Structure
• Create Initial Components
• Create App Layout
• Configure Routing
• Update Entry Point
• Create Styles
• Create Header
• Create Course Page
Copyright @ 2015 Learntek. All Rights Reserved. 9
Intro to Redux
• Do I Need Redux?
• Three Core Redux Principles
• Flux Similarities
• Flux Differences
• Redux Flow Overview
Copyright @ 2015 Learntek. All Rights Reserved. 10
Actions, Stores, and Reducers
• Actions
• Store
• What Is Immutability?
• Why Immutability?
• Handling Immutability
• Reducers
Copyright @ 2015 Learntek. All Rights Reserved. 11
Connecting React to Redux
• Container vs. Presentational Components
• React-redux Introduction
• mapStateToProps
• mapDispatchToProps
• A Chat with Redux
Copyright @ 2015 Learntek. All Rights Reserved. 12
Redux Flow
• Create Simple Add Course Form
• Binding in ES6
• Actions
• Reducers
• Root Reducer
• Store
• Instantiate Store and Provider
• Connect Container
Copyright @ 2015 Learntek. All Rights Reserved. 13
Step Through Redux Flow
• MapDispatchToProps Manual Mapping
• bindActionCreators
• Container Structure Review
• Action Type Constants
Copyright @ 2015 Learntek. All Rights Reserved. 14
Async in Redux
Copyright @ 2015 Learntek. All Rights Reserved. 15
• Why a Mock API?
• Async Library Options
• Thunk Overview
• Mock API Setup
• Remove Inline Form
• Add Thunk to Store
• Create Load CoursesThunk
• Action Naming Conventions
• Load Courses in Reducer
• Dispatch Action on Page Load
• Create Course List Component
Async Writes in Redux
• Create Manage Course Page
• Create Manage Course Form
• Create Form Input Components
• Use Manage Course Form
• Create Author Actions
• Create Author Reducer
• Map Author Data for Dropdown
• Create Form Change Handler
• Create Save Course Thunk
• Handle Creates and Updates in
Reducer
• Dispatch Create and Update
• Redirect via React Router Context
• Populate Form via
mapStateToProps
• Update State via component
WillReceiveProps
Copyright @ 2015 Learntek. All Rights Reserved. 16
Async Status and Error Handling
• Create Preloader Component
• Create AJAX Status Actions
• Create AJAX Status Reducer
• Call Begin AJAX in Thunks
• Hide Preloader Based on Status
• Use Promises to Wait for Thunks
• Create Form Submission Loading
Indicator
• Display Save Notification
• Error Handling
Copyright @ 2015 Learntek. All Rights Reserved. 17
Testing React
• Testing Frameworks
• Helper Libraries
• Testing React with React Test Utils
• Testing React with Enzyme
Copyright @ 2015 Learntek. All Rights Reserved. 18
Testing Redux
• Testing Connected React Components
• Testing mapStateToProps
• Testing Action Creators
• Testing Reducers
• Testing Thunks
• Testing the Store
Copyright @ 2015 Learntek. All Rights Reserved. 19
Prerequisite:
▪ Basic working knowledge of HTML,CSS,JavaScript, Text editor-Visual
Studio code/We storm/Atom and preffered one is Visual Studio .
Copyright @ 2015 Learntek. All Rights Reserved. 20
Copyright @ 2015 Learntek. All Rights Reserved. 21
React-Js-Online-Training-9028522.ppsx
Ad

More Related Content

Similar to React-Js-Online-Training-9028522.ppsx (20)

Targeting Mobile Platform with MVC 4.0
Targeting Mobile Platform with MVC 4.0Targeting Mobile Platform with MVC 4.0
Targeting Mobile Platform with MVC 4.0
Mayank Srivastava
 
Introduction to React native
Introduction to React nativeIntroduction to React native
Introduction to React native
Dhaval Barot
 
Using MVC with Kentico 8
Using MVC with Kentico 8Using MVC with Kentico 8
Using MVC with Kentico 8
Thomas Robbins
 
The happy developer - SharePoint Framework React and Mindfulness
The happy developer - SharePoint Framework React and MindfulnessThe happy developer - SharePoint Framework React and Mindfulness
The happy developer - SharePoint Framework React and Mindfulness
Olli Jääskeläinen
 
NEXTjs.pptxfggfgfdgfgfdgfdgfdgfdgfdgfdgfg
NEXTjs.pptxfggfgfdgfgfdgfdgfdgfdgfdgfdgfgNEXTjs.pptxfggfgfdgfgfdgfdgfdgfdgfdgfdgfg
NEXTjs.pptxfggfgfdgfgfdgfdgfdgfdgfdgfdgfg
zmulani8
 
React.js for Rails Developers
React.js for Rails DevelopersReact.js for Rails Developers
React.js for Rails Developers
Arkency
 
Asp.Net 3 5 Part 1
Asp.Net 3 5 Part 1Asp.Net 3 5 Part 1
Asp.Net 3 5 Part 1
asim78
 
MVC 6 - the new unified Web programming model
MVC 6 - the new unified Web programming modelMVC 6 - the new unified Web programming model
MVC 6 - the new unified Web programming model
Alex Thissen
 
Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music store
ADEEBANADEEM
 
Azure Functions Real World Examples
Azure Functions Real World Examples Azure Functions Real World Examples
Azure Functions Real World Examples
Yochay Kiriaty
 
React Native Introduction: Making Real iOS and Android Mobile App By JavaScript
React Native Introduction: Making Real iOS and Android Mobile App By JavaScriptReact Native Introduction: Making Real iOS and Android Mobile App By JavaScript
React Native Introduction: Making Real iOS and Android Mobile App By JavaScript
Kobkrit Viriyayudhakorn
 
Fluxible
FluxibleFluxible
Fluxible
Taylor Lovett
 
React js
React jsReact js
React js
Nikhil Karkra
 
AngularJS 1.x - your first application (problems and solutions)
AngularJS 1.x - your first application (problems and solutions)AngularJS 1.x - your first application (problems and solutions)
AngularJS 1.x - your first application (problems and solutions)
Igor Talevski
 
Isomorphic React Applications: Performance And Scalability
Isomorphic React Applications: Performance And ScalabilityIsomorphic React Applications: Performance And Scalability
Isomorphic React Applications: Performance And Scalability
Denis Izmaylov
 
Oracle JavaScript Extension Toolkit Web Components Bring Agility to App Devel...
Oracle JavaScript Extension Toolkit Web Components Bring Agility to App Devel...Oracle JavaScript Extension Toolkit Web Components Bring Agility to App Devel...
Oracle JavaScript Extension Toolkit Web Components Bring Agility to App Devel...
Lucas Jellema
 
l1-reactnativeintroduction-160816150540.pdf
l1-reactnativeintroduction-160816150540.pdfl1-reactnativeintroduction-160816150540.pdf
l1-reactnativeintroduction-160816150540.pdf
Hương Trà Pé Xjnk
 
Introduction to ASP.NET 5
Introduction to ASP.NET 5Introduction to ASP.NET 5
Introduction to ASP.NET 5
mbaric
 
edgegwfegfegwfe1aaddcbdhcdchdcdcbdvcdvbd009704b.pptx
edgegwfegfegwfe1aaddcbdhcdchdcdcbdvcdvbd009704b.pptxedgegwfegfegwfe1aaddcbdhcdchdcdcbdvcdvbd009704b.pptx
edgegwfegfegwfe1aaddcbdhcdchdcdcbdvcdvbd009704b.pptx
smangla1957
 
09f0a1aad0jhasvwdjhywy2qwgkyu09704b.pptx
09f0a1aad0jhasvwdjhywy2qwgkyu09704b.pptx09f0a1aad0jhasvwdjhywy2qwgkyu09704b.pptx
09f0a1aad0jhasvwdjhywy2qwgkyu09704b.pptx
BRIJESHKRSINGH
 
Targeting Mobile Platform with MVC 4.0
Targeting Mobile Platform with MVC 4.0Targeting Mobile Platform with MVC 4.0
Targeting Mobile Platform with MVC 4.0
Mayank Srivastava
 
Introduction to React native
Introduction to React nativeIntroduction to React native
Introduction to React native
Dhaval Barot
 
Using MVC with Kentico 8
Using MVC with Kentico 8Using MVC with Kentico 8
Using MVC with Kentico 8
Thomas Robbins
 
The happy developer - SharePoint Framework React and Mindfulness
The happy developer - SharePoint Framework React and MindfulnessThe happy developer - SharePoint Framework React and Mindfulness
The happy developer - SharePoint Framework React and Mindfulness
Olli Jääskeläinen
 
NEXTjs.pptxfggfgfdgfgfdgfdgfdgfdgfdgfdgfg
NEXTjs.pptxfggfgfdgfgfdgfdgfdgfdgfdgfdgfgNEXTjs.pptxfggfgfdgfgfdgfdgfdgfdgfdgfdgfg
NEXTjs.pptxfggfgfdgfgfdgfdgfdgfdgfdgfdgfg
zmulani8
 
React.js for Rails Developers
React.js for Rails DevelopersReact.js for Rails Developers
React.js for Rails Developers
Arkency
 
Asp.Net 3 5 Part 1
Asp.Net 3 5 Part 1Asp.Net 3 5 Part 1
Asp.Net 3 5 Part 1
asim78
 
MVC 6 - the new unified Web programming model
MVC 6 - the new unified Web programming modelMVC 6 - the new unified Web programming model
MVC 6 - the new unified Web programming model
Alex Thissen
 
Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music store
ADEEBANADEEM
 
Azure Functions Real World Examples
Azure Functions Real World Examples Azure Functions Real World Examples
Azure Functions Real World Examples
Yochay Kiriaty
 
React Native Introduction: Making Real iOS and Android Mobile App By JavaScript
React Native Introduction: Making Real iOS and Android Mobile App By JavaScriptReact Native Introduction: Making Real iOS and Android Mobile App By JavaScript
React Native Introduction: Making Real iOS and Android Mobile App By JavaScript
Kobkrit Viriyayudhakorn
 
AngularJS 1.x - your first application (problems and solutions)
AngularJS 1.x - your first application (problems and solutions)AngularJS 1.x - your first application (problems and solutions)
AngularJS 1.x - your first application (problems and solutions)
Igor Talevski
 
Isomorphic React Applications: Performance And Scalability
Isomorphic React Applications: Performance And ScalabilityIsomorphic React Applications: Performance And Scalability
Isomorphic React Applications: Performance And Scalability
Denis Izmaylov
 
Oracle JavaScript Extension Toolkit Web Components Bring Agility to App Devel...
Oracle JavaScript Extension Toolkit Web Components Bring Agility to App Devel...Oracle JavaScript Extension Toolkit Web Components Bring Agility to App Devel...
Oracle JavaScript Extension Toolkit Web Components Bring Agility to App Devel...
Lucas Jellema
 
l1-reactnativeintroduction-160816150540.pdf
l1-reactnativeintroduction-160816150540.pdfl1-reactnativeintroduction-160816150540.pdf
l1-reactnativeintroduction-160816150540.pdf
Hương Trà Pé Xjnk
 
Introduction to ASP.NET 5
Introduction to ASP.NET 5Introduction to ASP.NET 5
Introduction to ASP.NET 5
mbaric
 
edgegwfegfegwfe1aaddcbdhcdchdcdcbdvcdvbd009704b.pptx
edgegwfegfegwfe1aaddcbdhcdchdcdcbdvcdvbd009704b.pptxedgegwfegfegwfe1aaddcbdhcdchdcdcbdvcdvbd009704b.pptx
edgegwfegfegwfe1aaddcbdhcdchdcdcbdvcdvbd009704b.pptx
smangla1957
 
09f0a1aad0jhasvwdjhywy2qwgkyu09704b.pptx
09f0a1aad0jhasvwdjhywy2qwgkyu09704b.pptx09f0a1aad0jhasvwdjhywy2qwgkyu09704b.pptx
09f0a1aad0jhasvwdjhywy2qwgkyu09704b.pptx
BRIJESHKRSINGH
 

Recently uploaded (20)

CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
ThanushsaranS
 
LLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bertLLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bert
ChadapornK
 
Classification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptxClassification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptx
wencyjorda88
 
FPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptxFPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptx
ssuser4ef83d
 
Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..
yuvarajreddy2002
 
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.pptJust-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
ssuser5f8f49
 
Data Science Courses in India iim skills
Data Science Courses in India iim skillsData Science Courses in India iim skills
Data Science Courses in India iim skills
dharnathakur29
 
Data Analytics Overview and its applications
Data Analytics Overview and its applicationsData Analytics Overview and its applications
Data Analytics Overview and its applications
JanmejayaMishra7
 
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjksPpt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
panchariyasahil
 
Medical Dataset including visualizations
Medical Dataset including visualizationsMedical Dataset including visualizations
Medical Dataset including visualizations
vishrut8750588758
 
Defense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptxDefense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptx
Greg Makowski
 
DPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdfDPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdf
inmishra17121973
 
Adobe Analytics NOAM Central User Group April 2025 Agent AI: Uncovering the S...
Adobe Analytics NOAM Central User Group April 2025 Agent AI: Uncovering the S...Adobe Analytics NOAM Central User Group April 2025 Agent AI: Uncovering the S...
Adobe Analytics NOAM Central User Group April 2025 Agent AI: Uncovering the S...
gmuir1066
 
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
Simran112433
 
How to join illuminati Agent in uganda call+256776963507/0741506136
How to join illuminati Agent in uganda call+256776963507/0741506136How to join illuminati Agent in uganda call+256776963507/0741506136
How to join illuminati Agent in uganda call+256776963507/0741506136
illuminati Agent uganda call+256776963507/0741506136
 
183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag
fardin123rahman07
 
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
James Francis Paradigm Asset Management
 
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
Molecular methods diagnostic and monitoring of infection  -  Repaired.pptxMolecular methods diagnostic and monitoring of infection  -  Repaired.pptx
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
7tzn7x5kky
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbbEDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
JessaMaeEvangelista2
 
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
ThanushsaranS
 
LLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bertLLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bert
ChadapornK
 
Classification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptxClassification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptx
wencyjorda88
 
FPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptxFPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptx
ssuser4ef83d
 
Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..
yuvarajreddy2002
 
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.pptJust-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
ssuser5f8f49
 
Data Science Courses in India iim skills
Data Science Courses in India iim skillsData Science Courses in India iim skills
Data Science Courses in India iim skills
dharnathakur29
 
Data Analytics Overview and its applications
Data Analytics Overview and its applicationsData Analytics Overview and its applications
Data Analytics Overview and its applications
JanmejayaMishra7
 
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjksPpt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
panchariyasahil
 
Medical Dataset including visualizations
Medical Dataset including visualizationsMedical Dataset including visualizations
Medical Dataset including visualizations
vishrut8750588758
 
Defense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptxDefense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptx
Greg Makowski
 
DPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdfDPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdf
inmishra17121973
 
Adobe Analytics NOAM Central User Group April 2025 Agent AI: Uncovering the S...
Adobe Analytics NOAM Central User Group April 2025 Agent AI: Uncovering the S...Adobe Analytics NOAM Central User Group April 2025 Agent AI: Uncovering the S...
Adobe Analytics NOAM Central User Group April 2025 Agent AI: Uncovering the S...
gmuir1066
 
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
Simran112433
 
183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag
fardin123rahman07
 
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
James Francis Paradigm Asset Management
 
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
Molecular methods diagnostic and monitoring of infection  -  Repaired.pptxMolecular methods diagnostic and monitoring of infection  -  Repaired.pptx
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
7tzn7x5kky
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbbEDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
JessaMaeEvangelista2
 
Ad

React-Js-Online-Training-9028522.ppsx

  • 2. The following topics will be covered in our React JS Online Training: Copyright @ 2015 Learntek. All Rights Reserved. 2
  • 3. What is React JS? • React JS Training- React JS basically is an open-source JavaScript library which is used for building user interfaces specifically for single page applications. It’s used for handling view layer for web and mobile apps. React also allows us to create reusable UI components. • It can be used with a combination of other JavaScript libraries or frameworks, such as Angular JS in MVC. Copyright @ 2015 Learntek. All Rights Reserved. 3
  • 4. Why React? ▪ Easy to learn Anyone with a basic previous knowledge in programming can easily understand React. For react you just need basic knowledge of CSS and HTML. ▪ Native Approach React can be used to create mobile applications (React Native). And React is a follows reusability, meaning extensive code reusability is supported. Copyright @ 2015 Learntek. All Rights Reserved. 4
  • 5. …Continues… ▪ Data Binding React uses one-way data binding and an application architecture called Flux controls the flow of data to components through one control point – the dispatcher. It’s easier to debug self-contained components of large ReactJS apps. ▪ Performance React does not offer any concept of a built-in container for dependency. Copyright @ 2015 Learntek. All Rights Reserved. 5
  • 6. Training Topics • React Js Training -Who Is This Course For? • How Is This Course Different from the React and Flux course? • Why Redux? Copyright @ 2015 Learntek. All Rights Reserved. 6
  • 7. Environment Setup • Environment Overview • Versions Used in This Course • Hot Reloading • Install Node • Create package.json • Editors • Install npm Packages • Introduce npm Scripts • Create src Directory • Set up Webpack • Set up editorconfig • Set up Babel • Set up Express • Create Start Script • Create Start Message • Set up ESLin • Create Parallel Scripts • Set up Testing • Add Test Scripts Copyright @ 2015 Learntek. All Rights Reserved. 7
  • 8. React Component Approaches • Four Ways to Create React Components • ES5 Create Class Component • ES6 Class Component • ES5 Stateless Component • ES6 Stateless Component • When Should I Use Each Style? • Other Ways to Create Components • Container vs. Presentation Components Copyright @ 2015 Learntek. All Rights Reserved. 8
  • 9. Initial App Structure • Create Initial Components • Create App Layout • Configure Routing • Update Entry Point • Create Styles • Create Header • Create Course Page Copyright @ 2015 Learntek. All Rights Reserved. 9
  • 10. Intro to Redux • Do I Need Redux? • Three Core Redux Principles • Flux Similarities • Flux Differences • Redux Flow Overview Copyright @ 2015 Learntek. All Rights Reserved. 10
  • 11. Actions, Stores, and Reducers • Actions • Store • What Is Immutability? • Why Immutability? • Handling Immutability • Reducers Copyright @ 2015 Learntek. All Rights Reserved. 11
  • 12. Connecting React to Redux • Container vs. Presentational Components • React-redux Introduction • mapStateToProps • mapDispatchToProps • A Chat with Redux Copyright @ 2015 Learntek. All Rights Reserved. 12
  • 13. Redux Flow • Create Simple Add Course Form • Binding in ES6 • Actions • Reducers • Root Reducer • Store • Instantiate Store and Provider • Connect Container Copyright @ 2015 Learntek. All Rights Reserved. 13
  • 14. Step Through Redux Flow • MapDispatchToProps Manual Mapping • bindActionCreators • Container Structure Review • Action Type Constants Copyright @ 2015 Learntek. All Rights Reserved. 14
  • 15. Async in Redux Copyright @ 2015 Learntek. All Rights Reserved. 15 • Why a Mock API? • Async Library Options • Thunk Overview • Mock API Setup • Remove Inline Form • Add Thunk to Store • Create Load CoursesThunk • Action Naming Conventions • Load Courses in Reducer • Dispatch Action on Page Load • Create Course List Component
  • 16. Async Writes in Redux • Create Manage Course Page • Create Manage Course Form • Create Form Input Components • Use Manage Course Form • Create Author Actions • Create Author Reducer • Map Author Data for Dropdown • Create Form Change Handler • Create Save Course Thunk • Handle Creates and Updates in Reducer • Dispatch Create and Update • Redirect via React Router Context • Populate Form via mapStateToProps • Update State via component WillReceiveProps Copyright @ 2015 Learntek. All Rights Reserved. 16
  • 17. Async Status and Error Handling • Create Preloader Component • Create AJAX Status Actions • Create AJAX Status Reducer • Call Begin AJAX in Thunks • Hide Preloader Based on Status • Use Promises to Wait for Thunks • Create Form Submission Loading Indicator • Display Save Notification • Error Handling Copyright @ 2015 Learntek. All Rights Reserved. 17
  • 18. Testing React • Testing Frameworks • Helper Libraries • Testing React with React Test Utils • Testing React with Enzyme Copyright @ 2015 Learntek. All Rights Reserved. 18
  • 19. Testing Redux • Testing Connected React Components • Testing mapStateToProps • Testing Action Creators • Testing Reducers • Testing Thunks • Testing the Store Copyright @ 2015 Learntek. All Rights Reserved. 19
  • 20. Prerequisite: ▪ Basic working knowledge of HTML,CSS,JavaScript, Text editor-Visual Studio code/We storm/Atom and preffered one is Visual Studio . Copyright @ 2015 Learntek. All Rights Reserved. 20
  • 21. Copyright @ 2015 Learntek. All Rights Reserved. 21