SlideShare a Scribd company logo
UI
JAVA SCRIPT
 Javascript is the original name when the language
was developed by Netscape.
 JavaScript is a subset of ECMAScript.JavaScript is
basically ECMAScript at its core but builds upon it.
 JavaScript is a scripting language and it is not java.
 JavaScript is a lightweight, interpreted
programming language.
JAVASCRIPT
 Use in a web browser to display UI.
 JavaScript to generate content on the fly.
 Allows web sites to render only content.
DATA TYPES
 Six data types that are primitives:
 Boolean
 Null
 Undefined
 Number
 String
 Symbol(new in ECMAScript 6)
• More info: http://www.zsoltnagy.eu/es6-symbols-
and-its-use-cases
OBJECT
 Objects are variables too. But objects can contain many values.
 JavaScript objects are containers for named values called
properties or methods.
 e.g. var car = {
type:"Innova",
color:"white",
getName: function(){}
}
ACCESSING OBJECT PROPERTIES
 Access object properties in two ways:
 objectName.propertyName OR
 objectName["propertyName"]
 Accessing Object Methods
 objectName.methodName();
 Assigning value to Object Properties
 objectName.propertyName = “test”
 objectName.propertyName = function(){}.
FUNCTION
 function is defined with the function keyword, followed by
a name, followed by parentheses ().
 e.g. var myFunction = function () {}.
 In ES6 var myFunction = () => {}.
 Function invoke by open and close parentheses ()
 e.g. myFunction();
 In javascript function always return value.
 In javascript function is also an Object.
OPERATORS
 Arithmetic Operators
 + , - , * , * * , / , % , + + , - -
 Assignment Operators
 = , + = , - = , * = , / = , % =
 Comparison Operators
 = = , = = = , ! = , ! = = , > , < , > = , < = , ?
 Logical Operators
 & & , | | , !
 Bitwise Operators
 & , | , ~ , ^ , < < , > > , > > >
SCOPE OF VARIABLES
 In Javascript there is no curly brackets scope.
 e.g. if (true) {
var userName = “test”
}
 Console.log(userName)
 print ‘Test’
 In Javascript there is only function scope.
 e.g. var b = function(){
var userName = "test“
}
 b()
 console.log(userName)
 Uncaught ReferenceError: userName is not defined.
SPA
 A SPA is an application that runs inside a browser (or in a “compatible”
environment) and does not require page reloading during use.
 In a SPA, either all necessary code – HTML, JavaScript, and CSS – is
retrieved with a single page load,or the appropriate resources are
dynamically loaded and added to the page as necessary, usually in
response to user actions.
 in fact, there are many JS frameworks that attempt to offer similar
benefits, like Ember.js, Angular.js, React and so on.
User Interface
ROUTER
 A critical feature in a SPA is navigation between "pages" within the
application.
 Of course they are not real pages, since it's a Single Page Application,
but from the user point of view it looks like that. ... As this is a Single
Page Application.
TYPE OF SPA?
 Single-page applications can use state
 From an external source (i.e. the URL location) or
 Track state internally.
INTERNAL STATE
LOCATION BASE SPA
LOCATION PRIMER
 SPAs use window.location.
 Important properties for an SPA: pathname, hash, and search
(commonly called a query string).
HOW BROWSERS HANDLE
LOCATIONS
 Each browser tab has a “browsing context”. The browsing
context maintains a “session history”, which is basically, an
array of location entries
User Interface
User Interface
User Interface
WHAT DO SPAS DO TO AVOID
THIS?
 History API
 Instead of creating a new Document for every location, the
History API re-uses the active Document, just updating it to
reflect the new location.
User Interface
HISTORY API HAS THREE
CORE FUNCTIONS
 pushState()
 replaceState()
 go()
 These (and the rest of the API) are accessed via window.history.
User Interface
User Interface
REACT
 In computing, React (sometimes styled React.js or ReactJS) is a
JavaScript library for building user interfaces.
 It is maintained by Facebook, Instagram and a community of individual
developers and corporations.
 React allows developers to create large web-applications that use data
and can change over time without reloading the page.
 It aims primarily to provide speed, simplicity, and scalability.
 React processes only user interfaces in applications.
 React is a view layer library, not a framework like Backbone,
Angular etc.
WHAT MAKES REACT DIFFERENT?
 Components, not templates
 Re-render on update
 Virtual DOM (and events)
 Data changing over time is the root of all evil.
 Re-rendering on every change makes things simple.
 React has a virtual DOM.
 Optimized for performance and memory footprint.
 On every update...
 React builds a new virtual DOM subtree.
 diffs it with the old one.
 computes the minimal set of DOM mutations and puts them in a queue.
 and batch executes all updates
User Interface
WHAT IS COMPONENT ?
 Components are self-contained reusable building blocks of web
application.
 Created using React.createClass()
 The only required method is render()
 Inserted into DOM using React.renderComponent()
JSX
 one of the coolest things in React
 XML-like syntax for generating component's HTML
 Easier to read and understand large DOM trees
 Translates to plain JavaScript using react-tools
 Every Component has “state” and “Props”.
 Rerender the whole app once the state changes.
PROPS
 Passed down to component from parent component and represents
data for the component
 accessed via this.props
STATE
 Represents internal state of the component
 Accessed via this.state
 When a component's state data changes, the rendered markup will be
updated by re-invoking render() method
EXAMPLE
COMPONENT LIFE CYCLE
 ComponentWillMount: is executed before rendering
 ComponentDidMount: is executed after the first render only
 ComponentWillReceiveProps: is invoked as soon as the props are
updated before another render is called.
 ShouldComponentUpdate: should return true or false value. This will
determine if the component will be updated or not.
 ComponentWillUpdate: is called just before rendering.
 ComponentDidUpdate: is called just after rendering.
 componentWillUnmount is called after the component is unmounted
from the dom.
THANK YOU
Ad

More Related Content

What's hot (20)

CakePHP REST Plugin
CakePHP REST PluginCakePHP REST Plugin
CakePHP REST Plugin
Kevin van Zonneveld
 
Jsp (java server page)
Jsp (java server page)Jsp (java server page)
Jsp (java server page)
Chitrank Dixit
 
Dicoding Developer Coaching #32: Android | Reactive Programming dengan RxJava...
Dicoding Developer Coaching #32: Android | Reactive Programming dengan RxJava...Dicoding Developer Coaching #32: Android | Reactive Programming dengan RxJava...
Dicoding Developer Coaching #32: Android | Reactive Programming dengan RxJava...
DicodingEvent
 
Jsp Introduction Tutorial
Jsp Introduction TutorialJsp Introduction Tutorial
Jsp Introduction Tutorial
APSMIND TECHNOLOGY PVT LTD.
 
JAVA EE DEVELOPMENT (JSP and Servlets)
JAVA EE DEVELOPMENT (JSP and Servlets)JAVA EE DEVELOPMENT (JSP and Servlets)
JAVA EE DEVELOPMENT (JSP and Servlets)
Talha Ocakçı
 
Introduction to React JS for beginners
Introduction to React JS for beginners Introduction to React JS for beginners
Introduction to React JS for beginners
Varun Raj
 
Jsp
JspJsp
Jsp
Priya Goyal
 
Building RESTful applications using Spring MVC
Building RESTful applications using Spring MVCBuilding RESTful applications using Spring MVC
Building RESTful applications using Spring MVC
IndicThreads
 
Jsp
JspJsp
Jsp
Pooja Verma
 
Java Server Pages(jsp)
Java Server Pages(jsp)Java Server Pages(jsp)
Java Server Pages(jsp)
Manisha Keim
 
Jsp chapter 1
Jsp chapter 1Jsp chapter 1
Jsp chapter 1
kamal kotecha
 
Implicit object.pptx
Implicit object.pptxImplicit object.pptx
Implicit object.pptx
chakrapani tripathi
 
Dicoding Developer Coaching #20: Android | Apa itu Content Provider?
Dicoding Developer Coaching #20: Android | Apa itu Content Provider?Dicoding Developer Coaching #20: Android | Apa itu Content Provider?
Dicoding Developer Coaching #20: Android | Apa itu Content Provider?
DicodingEvent
 
React and redux
React and reduxReact and redux
React and redux
Mystic Coders, LLC
 
Java Server Pages
Java Server PagesJava Server Pages
Java Server Pages
Kasun Madusanke
 
INTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE AND JSP PROCESSING
INTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE  AND JSP PROCESSINGINTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE  AND JSP PROCESSING
INTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE AND JSP PROCESSING
Aaqib Hussain
 
Java server pages
Java server pagesJava server pages
Java server pages
Tanmoy Barman
 
Implicit objects advance Java
Implicit objects advance JavaImplicit objects advance Java
Implicit objects advance Java
Darshit Metaliya
 
The Road To Redux
The Road To ReduxThe Road To Redux
The Road To Redux
Jeffrey Sanchez
 
Unit 4 web technology uptu
Unit 4 web technology uptuUnit 4 web technology uptu
Unit 4 web technology uptu
Abhishek Kesharwani
 
Jsp (java server page)
Jsp (java server page)Jsp (java server page)
Jsp (java server page)
Chitrank Dixit
 
Dicoding Developer Coaching #32: Android | Reactive Programming dengan RxJava...
Dicoding Developer Coaching #32: Android | Reactive Programming dengan RxJava...Dicoding Developer Coaching #32: Android | Reactive Programming dengan RxJava...
Dicoding Developer Coaching #32: Android | Reactive Programming dengan RxJava...
DicodingEvent
 
JAVA EE DEVELOPMENT (JSP and Servlets)
JAVA EE DEVELOPMENT (JSP and Servlets)JAVA EE DEVELOPMENT (JSP and Servlets)
JAVA EE DEVELOPMENT (JSP and Servlets)
Talha Ocakçı
 
Introduction to React JS for beginners
Introduction to React JS for beginners Introduction to React JS for beginners
Introduction to React JS for beginners
Varun Raj
 
Building RESTful applications using Spring MVC
Building RESTful applications using Spring MVCBuilding RESTful applications using Spring MVC
Building RESTful applications using Spring MVC
IndicThreads
 
Java Server Pages(jsp)
Java Server Pages(jsp)Java Server Pages(jsp)
Java Server Pages(jsp)
Manisha Keim
 
Dicoding Developer Coaching #20: Android | Apa itu Content Provider?
Dicoding Developer Coaching #20: Android | Apa itu Content Provider?Dicoding Developer Coaching #20: Android | Apa itu Content Provider?
Dicoding Developer Coaching #20: Android | Apa itu Content Provider?
DicodingEvent
 
INTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE AND JSP PROCESSING
INTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE  AND JSP PROCESSINGINTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE  AND JSP PROCESSING
INTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE AND JSP PROCESSING
Aaqib Hussain
 
Implicit objects advance Java
Implicit objects advance JavaImplicit objects advance Java
Implicit objects advance Java
Darshit Metaliya
 

Similar to User Interface (20)

React & Redux JS
React & Redux JS React & Redux JS
React & Redux JS
Hamed Farag
 
Advanced JavaScript
Advanced JavaScriptAdvanced JavaScript
Advanced JavaScript
Mahmoud Tolba
 
Tuning and optimizing webcenter spaces application white paper
Tuning and optimizing webcenter spaces application white paperTuning and optimizing webcenter spaces application white paper
Tuning and optimizing webcenter spaces application white paper
Vinay Kumar
 
JAVA SCRIPT.pptbbdndndmdndndndndnndmmddnndn
JAVA SCRIPT.pptbbdndndmdndndndndnndmmddnndnJAVA SCRIPT.pptbbdndndmdndndndndnndmmddnndn
JAVA SCRIPT.pptbbdndndmdndndndndnndmmddnndn
harshithunnam715
 
Java Script - A New Look
Java Script - A New LookJava Script - A New Look
Java Script - A New Look
rumsan
 
SynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client librarySynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client library
Synapseindiappsdevelopment
 
JSF 2.0 Preview
JSF 2.0 PreviewJSF 2.0 Preview
JSF 2.0 Preview
Skills Matter
 
React JS and Redux
React JS and ReduxReact JS and Redux
React JS and Redux
Glib Kechyn
 
ClojureScript - Making Front-End development Fun again - John Stevenson - Cod...
ClojureScript - Making Front-End development Fun again - John Stevenson - Cod...ClojureScript - Making Front-End development Fun again - John Stevenson - Cod...
ClojureScript - Making Front-End development Fun again - John Stevenson - Cod...
Codemotion
 
Skill practical javascript diy projects
Skill practical javascript diy projectsSkill practical javascript diy projects
Skill practical javascript diy projects
SkillPracticalEdTech
 
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]
GDSC UofT Mississauga
 
Academy PRO: HTML5 Data storage
Academy PRO: HTML5 Data storageAcademy PRO: HTML5 Data storage
Academy PRO: HTML5 Data storage
Binary Studio
 
Tomcat + other things
Tomcat + other thingsTomcat + other things
Tomcat + other things
Aravindharamanan S
 
SharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and EventsSharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and Events
Mohan Arumugam
 
Java interview questions and answers
Java interview questions and answersJava interview questions and answers
Java interview questions and answers
Krishnaov
 
Java script
Java scriptJava script
Java script
Rajkiran Mummadi
 
Java script Basic
Java script BasicJava script Basic
Java script Basic
Jaya Kumari
 
Corso su ReactJS
Corso su ReactJSCorso su ReactJS
Corso su ReactJS
LinkMe Srl
 
User Interface Patterns and Nuxeo
User Interface Patterns and NuxeoUser Interface Patterns and Nuxeo
User Interface Patterns and Nuxeo
anicewick
 
Content-Driven Apps with React
Content-Driven Apps with ReactContent-Driven Apps with React
Content-Driven Apps with React
Netcetera
 
React & Redux JS
React & Redux JS React & Redux JS
React & Redux JS
Hamed Farag
 
Tuning and optimizing webcenter spaces application white paper
Tuning and optimizing webcenter spaces application white paperTuning and optimizing webcenter spaces application white paper
Tuning and optimizing webcenter spaces application white paper
Vinay Kumar
 
JAVA SCRIPT.pptbbdndndmdndndndndnndmmddnndn
JAVA SCRIPT.pptbbdndndmdndndndndnndmmddnndnJAVA SCRIPT.pptbbdndndmdndndndndnndmmddnndn
JAVA SCRIPT.pptbbdndndmdndndndndnndmmddnndn
harshithunnam715
 
Java Script - A New Look
Java Script - A New LookJava Script - A New Look
Java Script - A New Look
rumsan
 
SynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client librarySynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client library
Synapseindiappsdevelopment
 
React JS and Redux
React JS and ReduxReact JS and Redux
React JS and Redux
Glib Kechyn
 
ClojureScript - Making Front-End development Fun again - John Stevenson - Cod...
ClojureScript - Making Front-End development Fun again - John Stevenson - Cod...ClojureScript - Making Front-End development Fun again - John Stevenson - Cod...
ClojureScript - Making Front-End development Fun again - John Stevenson - Cod...
Codemotion
 
Skill practical javascript diy projects
Skill practical javascript diy projectsSkill practical javascript diy projects
Skill practical javascript diy projects
SkillPracticalEdTech
 
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]
GDSC UofT Mississauga
 
Academy PRO: HTML5 Data storage
Academy PRO: HTML5 Data storageAcademy PRO: HTML5 Data storage
Academy PRO: HTML5 Data storage
Binary Studio
 
SharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and EventsSharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and Events
Mohan Arumugam
 
Java interview questions and answers
Java interview questions and answersJava interview questions and answers
Java interview questions and answers
Krishnaov
 
Java script Basic
Java script BasicJava script Basic
Java script Basic
Jaya Kumari
 
Corso su ReactJS
Corso su ReactJSCorso su ReactJS
Corso su ReactJS
LinkMe Srl
 
User Interface Patterns and Nuxeo
User Interface Patterns and NuxeoUser Interface Patterns and Nuxeo
User Interface Patterns and Nuxeo
anicewick
 
Content-Driven Apps with React
Content-Driven Apps with ReactContent-Driven Apps with React
Content-Driven Apps with React
Netcetera
 
Ad

Recently uploaded (20)

Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
Shift Left using Lean for Agile Software Development
Shift Left using Lean for Agile Software DevelopmentShift Left using Lean for Agile Software Development
Shift Left using Lean for Agile Software Development
SathyaShankar6
 
Download Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With LatestDownload Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With Latest
tahirabibi60507
 
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
Andre Hora
 
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
steaveroggers
 
Adobe Illustrator Crack | Free Download & Install Illustrator
Adobe Illustrator Crack | Free Download & Install IllustratorAdobe Illustrator Crack | Free Download & Install Illustrator
Adobe Illustrator Crack | Free Download & Install Illustrator
usmanhidray
 
How to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud PerformanceHow to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
Egor Kaleynik
 
Salesforce Aged Complex Org Revitalization Process .pdf
Salesforce Aged Complex Org Revitalization Process .pdfSalesforce Aged Complex Org Revitalization Process .pdf
Salesforce Aged Complex Org Revitalization Process .pdf
SRINIVASARAO PUSULURI
 
EASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License CodeEASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License Code
aneelaramzan63
 
Agentic AI Use Cases using GenAI LLM models
Agentic AI Use Cases using GenAI LLM modelsAgentic AI Use Cases using GenAI LLM models
Agentic AI Use Cases using GenAI LLM models
Manish Chopra
 
Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdfMicrosoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
TechSoup
 
Exploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the FutureExploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the Future
ICS
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
Adobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest VersionAdobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest Version
kashifyounis067
 
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& ConsiderationsDesigning AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Dinusha Kumarasiri
 
Adobe Photoshop Lightroom CC 2025 Crack Latest Version
Adobe Photoshop Lightroom CC 2025 Crack Latest VersionAdobe Photoshop Lightroom CC 2025 Crack Latest Version
Adobe Photoshop Lightroom CC 2025 Crack Latest Version
usmanhidray
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
Shift Left using Lean for Agile Software Development
Shift Left using Lean for Agile Software DevelopmentShift Left using Lean for Agile Software Development
Shift Left using Lean for Agile Software Development
SathyaShankar6
 
Download Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With LatestDownload Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With Latest
tahirabibi60507
 
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
Andre Hora
 
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
steaveroggers
 
Adobe Illustrator Crack | Free Download & Install Illustrator
Adobe Illustrator Crack | Free Download & Install IllustratorAdobe Illustrator Crack | Free Download & Install Illustrator
Adobe Illustrator Crack | Free Download & Install Illustrator
usmanhidray
 
How to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud PerformanceHow to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
Egor Kaleynik
 
Salesforce Aged Complex Org Revitalization Process .pdf
Salesforce Aged Complex Org Revitalization Process .pdfSalesforce Aged Complex Org Revitalization Process .pdf
Salesforce Aged Complex Org Revitalization Process .pdf
SRINIVASARAO PUSULURI
 
EASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License CodeEASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License Code
aneelaramzan63
 
Agentic AI Use Cases using GenAI LLM models
Agentic AI Use Cases using GenAI LLM modelsAgentic AI Use Cases using GenAI LLM models
Agentic AI Use Cases using GenAI LLM models
Manish Chopra
 
Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdfMicrosoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
TechSoup
 
Exploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the FutureExploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the Future
ICS
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
Adobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest VersionAdobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest Version
kashifyounis067
 
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& ConsiderationsDesigning AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Dinusha Kumarasiri
 
Adobe Photoshop Lightroom CC 2025 Crack Latest Version
Adobe Photoshop Lightroom CC 2025 Crack Latest VersionAdobe Photoshop Lightroom CC 2025 Crack Latest Version
Adobe Photoshop Lightroom CC 2025 Crack Latest Version
usmanhidray
 
Ad

User Interface

  • 1. UI
  • 2. JAVA SCRIPT  Javascript is the original name when the language was developed by Netscape.  JavaScript is a subset of ECMAScript.JavaScript is basically ECMAScript at its core but builds upon it.  JavaScript is a scripting language and it is not java.  JavaScript is a lightweight, interpreted programming language.
  • 3. JAVASCRIPT  Use in a web browser to display UI.  JavaScript to generate content on the fly.  Allows web sites to render only content.
  • 4. DATA TYPES  Six data types that are primitives:  Boolean  Null  Undefined  Number  String  Symbol(new in ECMAScript 6) • More info: http://www.zsoltnagy.eu/es6-symbols- and-its-use-cases
  • 5. OBJECT  Objects are variables too. But objects can contain many values.  JavaScript objects are containers for named values called properties or methods.  e.g. var car = { type:"Innova", color:"white", getName: function(){} }
  • 6. ACCESSING OBJECT PROPERTIES  Access object properties in two ways:  objectName.propertyName OR  objectName["propertyName"]  Accessing Object Methods  objectName.methodName();  Assigning value to Object Properties  objectName.propertyName = “test”  objectName.propertyName = function(){}.
  • 7. FUNCTION  function is defined with the function keyword, followed by a name, followed by parentheses ().  e.g. var myFunction = function () {}.  In ES6 var myFunction = () => {}.  Function invoke by open and close parentheses ()  e.g. myFunction();  In javascript function always return value.  In javascript function is also an Object.
  • 8. OPERATORS  Arithmetic Operators  + , - , * , * * , / , % , + + , - -  Assignment Operators  = , + = , - = , * = , / = , % =  Comparison Operators  = = , = = = , ! = , ! = = , > , < , > = , < = , ?  Logical Operators  & & , | | , !  Bitwise Operators  & , | , ~ , ^ , < < , > > , > > >
  • 9. SCOPE OF VARIABLES  In Javascript there is no curly brackets scope.  e.g. if (true) { var userName = “test” }  Console.log(userName)  print ‘Test’  In Javascript there is only function scope.  e.g. var b = function(){ var userName = "test“ }  b()  console.log(userName)  Uncaught ReferenceError: userName is not defined.
  • 10. SPA  A SPA is an application that runs inside a browser (or in a “compatible” environment) and does not require page reloading during use.  In a SPA, either all necessary code – HTML, JavaScript, and CSS – is retrieved with a single page load,or the appropriate resources are dynamically loaded and added to the page as necessary, usually in response to user actions.  in fact, there are many JS frameworks that attempt to offer similar benefits, like Ember.js, Angular.js, React and so on.
  • 12. ROUTER  A critical feature in a SPA is navigation between "pages" within the application.  Of course they are not real pages, since it's a Single Page Application, but from the user point of view it looks like that. ... As this is a Single Page Application.
  • 13. TYPE OF SPA?  Single-page applications can use state  From an external source (i.e. the URL location) or  Track state internally.
  • 16. LOCATION PRIMER  SPAs use window.location.  Important properties for an SPA: pathname, hash, and search (commonly called a query string).
  • 17. HOW BROWSERS HANDLE LOCATIONS  Each browser tab has a “browsing context”. The browsing context maintains a “session history”, which is basically, an array of location entries
  • 21. WHAT DO SPAS DO TO AVOID THIS?  History API  Instead of creating a new Document for every location, the History API re-uses the active Document, just updating it to reflect the new location.
  • 23. HISTORY API HAS THREE CORE FUNCTIONS  pushState()  replaceState()  go()  These (and the rest of the API) are accessed via window.history.
  • 26. REACT  In computing, React (sometimes styled React.js or ReactJS) is a JavaScript library for building user interfaces.  It is maintained by Facebook, Instagram and a community of individual developers and corporations.  React allows developers to create large web-applications that use data and can change over time without reloading the page.
  • 27.  It aims primarily to provide speed, simplicity, and scalability.  React processes only user interfaces in applications.  React is a view layer library, not a framework like Backbone, Angular etc.
  • 28. WHAT MAKES REACT DIFFERENT?  Components, not templates  Re-render on update  Virtual DOM (and events)
  • 29.  Data changing over time is the root of all evil.  Re-rendering on every change makes things simple.
  • 30.  React has a virtual DOM.  Optimized for performance and memory footprint.  On every update...  React builds a new virtual DOM subtree.  diffs it with the old one.  computes the minimal set of DOM mutations and puts them in a queue.  and batch executes all updates
  • 32. WHAT IS COMPONENT ?  Components are self-contained reusable building blocks of web application.  Created using React.createClass()  The only required method is render()  Inserted into DOM using React.renderComponent()
  • 33. JSX  one of the coolest things in React  XML-like syntax for generating component's HTML  Easier to read and understand large DOM trees  Translates to plain JavaScript using react-tools
  • 34.  Every Component has “state” and “Props”.  Rerender the whole app once the state changes.
  • 35. PROPS  Passed down to component from parent component and represents data for the component  accessed via this.props
  • 36. STATE  Represents internal state of the component  Accessed via this.state  When a component's state data changes, the rendered markup will be updated by re-invoking render() method
  • 38. COMPONENT LIFE CYCLE  ComponentWillMount: is executed before rendering  ComponentDidMount: is executed after the first render only  ComponentWillReceiveProps: is invoked as soon as the props are updated before another render is called.  ShouldComponentUpdate: should return true or false value. This will determine if the component will be updated or not.  ComponentWillUpdate: is called just before rendering.  ComponentDidUpdate: is called just after rendering.  componentWillUnmount is called after the component is unmounted from the dom.