SlideShare a Scribd company logo
Reactjs
Workshop
Plan
◎ What is Reactjs ?
◎ Reactjs Core Concepts
◎ Let’s code
2
Hello!
I am Rebai Ahmed
Who AM I ?
➢ React Lover
➢ Someone try to learn new
thing every day
3
I’m web developer
I want to create
this web page :)
5
How is that possible ?
6
7
Solution ?
8
9
10
This is solution !!! ?
Issues !
11
➢ Search & modify elements
manually !
➢ Data synchronisation!
1. Fb created
Reactjs
12
1.
What is Reactjs ?
13
Short summary
➢ A Facebook & Instagram
collaboration.
➢ Initial release from 2013
➢ 114.894 Star in GitHub
14
A library for creating User
interfaces
15
React is not a Framework
16
Big Companies using
reactjs
17
18
React vs Angular !
Why Reactjs ?
19
Core Problem !!!!!
20
Separation of Concerns :
➢ app/partials/button.html
➢ app/css/button.css
➢ app/js/directives/button.js
21
➢ SEO Friendly - Components are client side as
well as server side render hence they are SEO
friendly and no 3 rd party plugin required
➢ Coding is simpler because of JSX
➢ Big minds are backing Reactjs
22
➢ Virtual DOM - Reactjs use the concept of virtual
DOM which helps in the performance
➢ Unidirectional Data Flow - Compare to the 2 way
data binding. Reactjs use the concept of
Unidirectional data flow which improve the over
all performance.
Reactjs installation:
Include as a plain Javascript
23
Reactjs installation:
Use live sandboxes
24
Reactjs installation:
using npm
25
2.
Reactjs core concepts
26
27
JSX Components
Unidirectional
Data Flow
Virtual
DOM
React core concepts
:Component
28
React Components
Self-contained reusable building
blocks
of web application
29
React Components
( reusable )
➢ Pinterest open sourced its full React
component UI library
30
React Components
( reusable )
➢ Office UI Fabric
31
React Components LifeCycle !
32
React is
about
components
33
34
How does
component
look like?
React core concepts :Virtual
DOM
42
43
What is DOM ?
44
React Virtual DOM ?
➢ Keep track of state in DOM is hard !
➢ It’ll be so easier to re-render the whole
DOM on every change
➢ Unfortunately the DOM API is not so fast.
45
React
Re-render everything for
every update
46
Seems Expensive ?
47
React Virtual DOM ?
48
React Virtual DOM ?
➢ Use different algorithm with the browser DOM tree to
identify the changes
➢ Instead of creating new object, Reactjs just identify what
change is took place and once identify update that state
49
React Virtual DOM
Re-rendering process ?
➢ Build new virtual DOM subtree
➢ Diff with the old one
➢ Compute the minimal set of DOM
mutations
➢ Batch execute all update
DÉMO
React core concepts :JSX
50
51
React JSX ?
➢ React components are written in JSX, a
JavaScript extension syntax allowing
easy quoting of HTML
and using HTML tag syntax to render
components
<div>
<h1> Shopping list for
{this.props.name} </h1>
<ul>
<li>Instagram </li>
<li>Whatsap </li>
<li>Oculus </li>
</ul>
</div>
52
React JSX ?
<div>
<h1> Shopping list for
{this.props.name} </h1>
<ul>
<li>Instagram </li>
<li>Whatsap </li>
<li>Oculus </li>
</ul>
</div>
53
React JSX expressions ?
54
React JSX expressions ?
React core concepts :state &&
props !
55
React :Data Flow State && props
56
React :Data Flow State && props
57
React :Data Flow Children
58
ECMASCRIPT 6 / ECMASCRIPT 2015
WHAT’S NEW? modern syntax ,better suited for big
applications
59
➢ Variable types
➢ Arrow functions
➢ Modules
➢ Classes
➢ A lot more…
➢
ECMASCRIPT 6 / ECMASCRIPT 2015
WHAT’S NEW?
60
➢ Arrow functions
ECMASCRIPT 6 / ECMASCRIPT 2015
WHAT’S NEW?
61
➢ Template Literals (Strings)
ECMASCRIPT 6 / ECMASCRIPT 2015
WHAT’S NEW?
62
➢ Classes
ECMASCRIPT 6 / ECMASCRIPT 2015
WHAT’S NEW?
63
➢ Modules
3.
Let’s start coding
64
HELP
Use React
65
Component
66
Render
67
State
68
FORMS
69
Thanks!
Any questions?
70
You can find me at:
➢ Rebaiahmed.github.io
➢ github.com/Rebaiahmed
➢ @RebaiAhmed_
➢ rebai.ahmed@outlook.com
Ressources
◎ https://devhints.io/react
◎ https://github.com/enaqx/awesome-react
◎ https://medium.freecodecamp.org/all-the-f
undamental-react-js-concepts-jammed-int
o-this-single-medium-article-c83f9b53eac2
◎ https://github.com/TunisiaJavascriptCom
munity/react-in-patterns
71

More Related Content

What's hot

What's hot (20)

React JS: A Secret Preview
React JS: A Secret PreviewReact JS: A Secret Preview
React JS: A Secret Preview
 
Basics of React Hooks.pptx.pdf
Basics of React Hooks.pptx.pdfBasics of React Hooks.pptx.pdf
Basics of React Hooks.pptx.pdf
 
Reactjs
ReactjsReactjs
Reactjs
 
React workshop presentation
React workshop presentationReact workshop presentation
React workshop presentation
 
React - Introdução
React - IntroduçãoReact - Introdução
React - Introdução
 
ReactJS
ReactJSReactJS
ReactJS
 
React JS
React JSReact JS
React JS
 
Getting started with Redux js
Getting started with Redux jsGetting started with Redux js
Getting started with Redux js
 
React
React React
React
 
Introduction to React JS for beginners
Introduction to React JS for beginners Introduction to React JS for beginners
Introduction to React JS for beginners
 
JavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScriptJavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScript
 
Introduction to React JS
Introduction to React JSIntroduction to React JS
Introduction to React JS
 
React/Redux
React/ReduxReact/Redux
React/Redux
 
Introduction to React JS for beginners | Namespace IT
Introduction to React JS for beginners | Namespace ITIntroduction to React JS for beginners | Namespace IT
Introduction to React JS for beginners | Namespace IT
 
Introduction to React
Introduction to ReactIntroduction to React
Introduction to React
 
Express node js
Express node jsExpress node js
Express node js
 
React hooks
React hooksReact hooks
React hooks
 
Vue JS Intro
Vue JS IntroVue JS Intro
Vue JS Intro
 
Spring Framework - MVC
Spring Framework - MVCSpring Framework - MVC
Spring Framework - MVC
 
An introduction to React.js
An introduction to React.jsAn introduction to React.js
An introduction to React.js
 

Similar to Reactjs workshop (1)

Welcome to React & Flux !
Welcome to React & Flux !Welcome to React & Flux !
Welcome to React & Flux !
Ritesh Kumar
 
Reactjs notes.pptx for web development- tutorial and theory
Reactjs  notes.pptx for web development- tutorial and theoryReactjs  notes.pptx for web development- tutorial and theory
Reactjs notes.pptx for web development- tutorial and theory
jobinThomas54
 

Similar to Reactjs workshop (1) (20)

Reactjs workshop
Reactjs workshop Reactjs workshop
Reactjs workshop
 
React native
React nativeReact native
React native
 
Web summit.pptx
Web summit.pptxWeb summit.pptx
Web summit.pptx
 
Introduction to React
Introduction to ReactIntroduction to React
Introduction to React
 
Welcome to React & Flux !
Welcome to React & Flux !Welcome to React & Flux !
Welcome to React & Flux !
 
React Tech Salon
React Tech SalonReact Tech Salon
React Tech Salon
 
Why Should You Choose ReactJS for Game Development_.pdf
Why Should You Choose ReactJS for Game Development_.pdfWhy Should You Choose ReactJS for Game Development_.pdf
Why Should You Choose ReactJS for Game Development_.pdf
 
Learn reactjs, how to code with example and general understanding thinkwik
Learn reactjs, how to code with example and general understanding   thinkwikLearn reactjs, how to code with example and general understanding   thinkwik
Learn reactjs, how to code with example and general understanding thinkwik
 
Tech Talk on ReactJS
Tech Talk on ReactJSTech Talk on ReactJS
Tech Talk on ReactJS
 
Angular Ivy- An Overview
Angular Ivy- An OverviewAngular Ivy- An Overview
Angular Ivy- An Overview
 
ReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages
ReactJS Vs React Native: Understanding Differences, Advantages, DisadvantagesReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages
ReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages
 
All the reasons for choosing react js that you didn't know about - Avi Marcus...
All the reasons for choosing react js that you didn't know about - Avi Marcus...All the reasons for choosing react js that you didn't know about - Avi Marcus...
All the reasons for choosing react js that you didn't know about - Avi Marcus...
 
What is cool with Domino V10, Proton and Node.JS, and why would I use it in ...
What is cool with Domino V10, Proton and Node.JS, and why would I use it in ...What is cool with Domino V10, Proton and Node.JS, and why would I use it in ...
What is cool with Domino V10, Proton and Node.JS, and why would I use it in ...
 
Full Stack React Workshop [CSSC x GDSC]
Full Stack React Workshop [CSSC x GDSC]Full Stack React Workshop [CSSC x GDSC]
Full Stack React Workshop [CSSC x GDSC]
 
Introduction to react native
Introduction to react nativeIntroduction to react native
Introduction to react native
 
Reactjs notes.pptx for web development- tutorial and theory
Reactjs  notes.pptx for web development- tutorial and theoryReactjs  notes.pptx for web development- tutorial and theory
Reactjs notes.pptx for web development- tutorial and theory
 
Reactjs Introduction - Virtual DOM
Reactjs Introduction - Virtual DOMReactjs Introduction - Virtual DOM
Reactjs Introduction - Virtual DOM
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
 
Review on React JS
Review on React JSReview on React JS
Review on React JS
 
Go Pro, Inc. Case Study: Dive into the details of our node.js applications
Go Pro, Inc. Case Study: Dive into the details of our node.js applicationsGo Pro, Inc. Case Study: Dive into the details of our node.js applications
Go Pro, Inc. Case Study: Dive into the details of our node.js applications
 

More from Ahmed rebai

Machine learning presentation (gdg beja)
Machine learning presentation (gdg beja)Machine learning presentation (gdg beja)
Machine learning presentation (gdg beja)
Ahmed rebai
 

More from Ahmed rebai (15)

Dev fest GDG beja tensorflow presenatation
Dev fest GDG  beja tensorflow presenatationDev fest GDG  beja tensorflow presenatation
Dev fest GDG beja tensorflow presenatation
 
Dialogflow
DialogflowDialogflow
Dialogflow
 
Reclami
ReclamiReclami
Reclami
 
Machine learning presentation (gdg beja)
Machine learning presentation (gdg beja)Machine learning presentation (gdg beja)
Machine learning presentation (gdg beja)
 
Distributed programing (hadoop &amp;&amp; java) version finale.pptx
Distributed programing  (hadoop &amp;&amp; java) version finale.pptxDistributed programing  (hadoop &amp;&amp; java) version finale.pptx
Distributed programing (hadoop &amp;&amp; java) version finale.pptx
 
Cloud computing presentation
Cloud computing presentationCloud computing presentation
Cloud computing presentation
 
Tensorflow presentation
Tensorflow presentationTensorflow presentation
Tensorflow presentation
 
Machine learning presentation (gdg beja)
Machine learning presentation (gdg beja)Machine learning presentation (gdg beja)
Machine learning presentation (gdg beja)
 
Gestion du stress
Gestion du stressGestion du stress
Gestion du stress
 
Life is a pitch
Life is a pitchLife is a pitch
Life is a pitch
 
Présentation hack the road
Présentation hack the roadPrésentation hack the road
Présentation hack the road
 
Isamm clubs
Isamm clubsIsamm clubs
Isamm clubs
 
Bmy bit presentation
Bmy bit presentationBmy bit presentation
Bmy bit presentation
 
Rapport pfe
Rapport pfeRapport pfe
Rapport pfe
 
Final présention [recovered]
Final présention [recovered]Final présention [recovered]
Final présention [recovered]
 

Recently uploaded

Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdf
Kamal Acharya
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
Kamal Acharya
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
Kamal Acharya
 

Recently uploaded (20)

Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Danfoss NeoCharge Technology -A Revolution in 2024.pdf
Danfoss NeoCharge Technology -A Revolution in 2024.pdfDanfoss NeoCharge Technology -A Revolution in 2024.pdf
Danfoss NeoCharge Technology -A Revolution in 2024.pdf
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
A case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfA case study of cinema management system project report..pdf
A case study of cinema management system project report..pdf
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
fluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answerfluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answer
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdf
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
 
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docxThe Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
 

Reactjs workshop (1)