SlideShare a Scribd company logo
2
Most read
5
Most read
12
Most read
React JS
A Quick Introduction Tutorial
Mohammed Fazuluddin
Topics
 Overview
 React JS Features
 React JS Architecture
 React + Redux Architecture
 React JS components
 React JS Best Practices
 Pro’s and Con’s
 Useful Links
Overview
 React JS is a front-end library developed by Facebook. It is used for handling
the view layer for web and mobile apps.
 React JS allows us to create reusable UI components.
 It is currently one of the most popular JavaScript libraries and has a strong
foundation and large community behind it.
 React JS is a declarative, efficient, and flexible JavaScript library for building
user interfaces.
 It lets you compose complex UIs from small and isolated pieces of code called
“components”.
 React JS is JavaScript library used for building reusable UI components.
Overview
 React JS is a library for building composable user interfaces.
 React JS encourages the creation of reusable UI components, which present
data that changes over time.
 Lots of people use React as the V in MVC. React abstracts away the DOM from
you, offering a simpler programming model and better performance.
 React JS can also render on the server using Node, and it can power native
apps using React Native.
 React JS implements one-way reactive data flow, which reduces the
boilerplate and is easier to reason about than traditional data binding.
React JS Features
 JSX − JSX is JavaScript syntax extension. It isn't necessary to use JSX in React
development, but it is recommended.
 Components − React is all about components. You need to think of everything
as a component. This will help you maintain the code when working on larger
scale projects.
 Unidirectional data flow and Flux − React implements one-way data flow
which makes it easy to reason about your app. Flux is a pattern that helps
keeping your data unidirectional.
 License − React is licensed under the Facebook Inc. Documentation is
licensed under CC BY 4.0.
React JS Architecture
React + Redux Architecture
React JS components
 State-full or class-based components
 A state-full component has its state and data associated with the state.
 You can pass data inside this type of component via state or props objects.
 State-full components are also harder to support as they persist some data and
may change the global state of the app.
 State-less or function-based components
 State-less components or function-based components and what React Hooks is for
Function-based components are just simple JavaScript functions.
 State-less function-based components have some limitations and essentially must
have one global place to manage state.
React JS components
 Presentational (or high-order) components
 High-Order Component (or HOC) is essentially a design pattern, also known as a
Decorator Pattern.
 In ReactJS, a HOC is a component that wraps another component by adding extra
functionality or extra properties.
 This allows abstraction from some commonly used logic and keeps your code DRY.
 Container components
 Container components, on the other hand, have logic to set state or have functions
to emit events up to a parent component.
 The general rule of the thumb is to keep your component as simple as possible with
a Single Responsibility Principle design principle in mind, which essentially means
your component must do one thing, but do it well.
React JS Best Practices
 When using ReduxJS, split your Reducer code into smaller methods to avoid
huge JSON within your Reducer.
 Use the create-react-app generator to bootstrap your ReactJS app.
 Keep your code DRY. Don’t Repeat Yourself, but keep in mind code duplicate is
NOT always a bad thing.
 Avoid having large classes, methods or components, including Reducers.
 Use more robust managers to manage application state, such as Redux.
 Use event synchronizer, such as Redux-Thunk, for interactions with your back
end API.
 Avoid passing too many attributes or arguments. Limit yourself to five props
that you pass into your component.
React JS Best Practices
 Use React JS defaultProps and React JS propTypes.
 Use linter, break up lines that are too long.
 Keep your own jslint configuration file.
 Always use a dependency manager with a lock file, such as NPM or yarn.
 Test your commonly accessed code, code that is complex and prone to bugs.
 Use ES6 de-structuring for your props.
 Use conditional rendering.
 User `map()` to collect and render collections of components.
 Use JEST to test your React JS code.
Pro’s and Con’s
 Pro’s:
 Updates process is optimized and accelerated.
 JSX makes components/blocks code readable. It displays how components are
plugged or combined with.
 React’s data binding establishes conditions for creation dynamic applications.
 Prompt rendering. Using comprises methods to minimize number of DOM operations
helps to optimize updating process and accelerate it.
 Testable. React’s native tools are offered for testing, debugging code.
 Up to date. Facebook team supports the library. Advice or code samples can be
given by Facebook community.
 Using React+ES6/7, application gets high-tech and is suitable for high load systems.
Pro’s and Con’s
 Con’s:
 Learning curve. Being not full-featured framework it is required in-depth
knowledge for integration user interface free library into MVC framework.
 View-orientedness is one of the cons of React JS. It should be found 'Model' and
'Controller' to resolve 'View' problem.
 Not using isomorphic approach to exploit application leads to search engines
indexing problems.
 Lots of developers dislike JSX Reacts documentation, manuals are difficult for
newcomers’ understanding.
 Reacts large size library.
Useful Links
 React JS Environment setups
 https://www.tutorialspoint.com/reactjs/reactjs_environment_setup.htm
 Sample Examples
 https://reactjs.org/community/examples.html
Thanks
If you feel that it is helpful and worthy to share with others then please like and share the same.

More Related Content

PPTX
Introduction to React JS
PPTX
Introduction to React JS for beginners | Namespace IT
PDF
React js
PPTX
Introduction to React JS for beginners
PPTX
Reactjs
PDF
ReactJS presentation
PPTX
Intro to React
Introduction to React JS
Introduction to React JS for beginners | Namespace IT
React js
Introduction to React JS for beginners
Reactjs
ReactJS presentation
Intro to React

What's hot (20)

ODP
Introduction to ReactJS
PPTX
reactJS
PPTX
React workshop
PPTX
PPTX
Intro to React
PPTX
React js - The Core Concepts
PDF
React JS - Introduction
PDF
WEB DEVELOPMENT USING REACT JS
PDF
An introduction to React.js
PPTX
Its time to React.js
PPTX
React-JS.pptx
PPTX
[Final] ReactJS presentation
PPTX
React js
PPTX
ReactJS presentation.pptx
PPTX
React js programming concept
PPTX
React workshop presentation
PDF
An Introduction to ReactJS
PDF
React Js Simplified
PPTX
React hooks
PDF
Overview of React.JS - Internship Presentation - Week 5
Introduction to ReactJS
reactJS
React workshop
Intro to React
React js - The Core Concepts
React JS - Introduction
WEB DEVELOPMENT USING REACT JS
An introduction to React.js
Its time to React.js
React-JS.pptx
[Final] ReactJS presentation
React js
ReactJS presentation.pptx
React js programming concept
React workshop presentation
An Introduction to ReactJS
React Js Simplified
React hooks
Overview of React.JS - Internship Presentation - Week 5
Ad

Similar to React JS - A quick introduction tutorial (20)

PPSX
React introduction
PPTX
Reactjs notes.pptx for web development- tutorial and theory
PDF
FRONTEND DEVELOPMENT WITH REACT.JS
PDF
Introduction to React JS
PDF
Fundamental concepts of react js
PPTX
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
PPTX
React for JavaScipt Introduction and functions
PPTX
Introduction to ReactJS UI Web Dev .pptx
PDF
a-detailed-guide-everything-you-need-to-know-about-reactjs.pdf
PDF
Getting Started with React, When You’re an Angular Developer
PDF
PDF
Tech Talk on ReactJS
PDF
An Intense Overview of the React Ecosystem
PDF
theory-slides-vueh3urh4ur4ur4r44oirj4riu4ri
PPTX
React_Complete.pptx
PDF
react hook and wesite making structure ppt
PPTX
PPTX
DOCX
React Components and Its Importance.docx
PPTX
Introduction to React JS.pptx
React introduction
Reactjs notes.pptx for web development- tutorial and theory
FRONTEND DEVELOPMENT WITH REACT.JS
Introduction to React JS
Fundamental concepts of react js
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React for JavaScipt Introduction and functions
Introduction to ReactJS UI Web Dev .pptx
a-detailed-guide-everything-you-need-to-know-about-reactjs.pdf
Getting Started with React, When You’re an Angular Developer
Tech Talk on ReactJS
An Intense Overview of the React Ecosystem
theory-slides-vueh3urh4ur4ur4r44oirj4riu4ri
React_Complete.pptx
react hook and wesite making structure ppt
React Components and Its Importance.docx
Introduction to React JS.pptx
Ad

More from Mohammed Fazuluddin (20)

PDF
Cloud Providers and Their Key Features Explained
PDF
Database Performance Handling : A comprehensive guide
PDF
Design patterns Q&A | Important question and answers
PDF
Software-Requirements-to-System-Design Basics
PDF
MEAN-vs-MERN-A-Developers-Guide and Explanation
PDF
Cloud AI Deployment Design Patterns - Learn the Basic Deployment Patterns
PDF
Auto-scaling-real-time-software-applications-and-best-practices.pdf
PDF
Java Version(v5 -v23) Features with sample code snippet
PDF
Cloud Architecture Framework Pillar’s.pdf
PDF
Implementing Generative AI and Machine Learning on GCP: Architectures, Use Ca...
PDF
LEVERAGING AWS GENERATIVE AI: ARCHITECTURAL INSIGHTS AND REAL-WORLD IMPLEMENT...
PDF
Basics of GraphQL : Unlocking the Power of GraphQL
PPTX
SQL Injection Introduction and Prevention
PPTX
DOMAIN DRIVER DESIGN
PPTX
New Relic Basics
PPTX
Terraform Basics
PPTX
Rest API Security - A quick understanding of Rest API Security
PPTX
Software architectural patterns - A Quick Understanding Guide
PPTX
Mule ESB - An Enterprise Service Bus
PPTX
Docker - A Quick Introduction Guide
Cloud Providers and Their Key Features Explained
Database Performance Handling : A comprehensive guide
Design patterns Q&A | Important question and answers
Software-Requirements-to-System-Design Basics
MEAN-vs-MERN-A-Developers-Guide and Explanation
Cloud AI Deployment Design Patterns - Learn the Basic Deployment Patterns
Auto-scaling-real-time-software-applications-and-best-practices.pdf
Java Version(v5 -v23) Features with sample code snippet
Cloud Architecture Framework Pillar’s.pdf
Implementing Generative AI and Machine Learning on GCP: Architectures, Use Ca...
LEVERAGING AWS GENERATIVE AI: ARCHITECTURAL INSIGHTS AND REAL-WORLD IMPLEMENT...
Basics of GraphQL : Unlocking the Power of GraphQL
SQL Injection Introduction and Prevention
DOMAIN DRIVER DESIGN
New Relic Basics
Terraform Basics
Rest API Security - A quick understanding of Rest API Security
Software architectural patterns - A Quick Understanding Guide
Mule ESB - An Enterprise Service Bus
Docker - A Quick Introduction Guide

Recently uploaded (20)

PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
history of c programming in notes for students .pptx
PPTX
Transform Your Business with a Software ERP System
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
top salesforce developer skills in 2025.pdf
PPTX
Online Work Permit System for Fast Permit Processing
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
How Creative Agencies Leverage Project Management Software.pdf
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Operating system designcfffgfgggggggvggggggggg
ManageIQ - Sprint 268 Review - Slide Deck
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
2025 Textile ERP Trends: SAP, Odoo & Oracle
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
How to Choose the Right IT Partner for Your Business in Malaysia
Design an Analysis of Algorithms I-SECS-1021-03
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Odoo POS Development Services by CandidRoot Solutions
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
history of c programming in notes for students .pptx
Transform Your Business with a Software ERP System
Adobe Illustrator 28.6 Crack My Vision of Vector Design
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
top salesforce developer skills in 2025.pdf
Online Work Permit System for Fast Permit Processing
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
How Creative Agencies Leverage Project Management Software.pdf

React JS - A quick introduction tutorial

  • 1. React JS A Quick Introduction Tutorial Mohammed Fazuluddin
  • 2. Topics  Overview  React JS Features  React JS Architecture  React + Redux Architecture  React JS components  React JS Best Practices  Pro’s and Con’s  Useful Links
  • 3. Overview  React JS is a front-end library developed by Facebook. It is used for handling the view layer for web and mobile apps.  React JS allows us to create reusable UI components.  It is currently one of the most popular JavaScript libraries and has a strong foundation and large community behind it.  React JS is a declarative, efficient, and flexible JavaScript library for building user interfaces.  It lets you compose complex UIs from small and isolated pieces of code called “components”.  React JS is JavaScript library used for building reusable UI components.
  • 4. Overview  React JS is a library for building composable user interfaces.  React JS encourages the creation of reusable UI components, which present data that changes over time.  Lots of people use React as the V in MVC. React abstracts away the DOM from you, offering a simpler programming model and better performance.  React JS can also render on the server using Node, and it can power native apps using React Native.  React JS implements one-way reactive data flow, which reduces the boilerplate and is easier to reason about than traditional data binding.
  • 5. React JS Features  JSX − JSX is JavaScript syntax extension. It isn't necessary to use JSX in React development, but it is recommended.  Components − React is all about components. You need to think of everything as a component. This will help you maintain the code when working on larger scale projects.  Unidirectional data flow and Flux − React implements one-way data flow which makes it easy to reason about your app. Flux is a pattern that helps keeping your data unidirectional.  License − React is licensed under the Facebook Inc. Documentation is licensed under CC BY 4.0.
  • 7. React + Redux Architecture
  • 8. React JS components  State-full or class-based components  A state-full component has its state and data associated with the state.  You can pass data inside this type of component via state or props objects.  State-full components are also harder to support as they persist some data and may change the global state of the app.  State-less or function-based components  State-less components or function-based components and what React Hooks is for Function-based components are just simple JavaScript functions.  State-less function-based components have some limitations and essentially must have one global place to manage state.
  • 9. React JS components  Presentational (or high-order) components  High-Order Component (or HOC) is essentially a design pattern, also known as a Decorator Pattern.  In ReactJS, a HOC is a component that wraps another component by adding extra functionality or extra properties.  This allows abstraction from some commonly used logic and keeps your code DRY.  Container components  Container components, on the other hand, have logic to set state or have functions to emit events up to a parent component.  The general rule of the thumb is to keep your component as simple as possible with a Single Responsibility Principle design principle in mind, which essentially means your component must do one thing, but do it well.
  • 10. React JS Best Practices  When using ReduxJS, split your Reducer code into smaller methods to avoid huge JSON within your Reducer.  Use the create-react-app generator to bootstrap your ReactJS app.  Keep your code DRY. Don’t Repeat Yourself, but keep in mind code duplicate is NOT always a bad thing.  Avoid having large classes, methods or components, including Reducers.  Use more robust managers to manage application state, such as Redux.  Use event synchronizer, such as Redux-Thunk, for interactions with your back end API.  Avoid passing too many attributes or arguments. Limit yourself to five props that you pass into your component.
  • 11. React JS Best Practices  Use React JS defaultProps and React JS propTypes.  Use linter, break up lines that are too long.  Keep your own jslint configuration file.  Always use a dependency manager with a lock file, such as NPM or yarn.  Test your commonly accessed code, code that is complex and prone to bugs.  Use ES6 de-structuring for your props.  Use conditional rendering.  User `map()` to collect and render collections of components.  Use JEST to test your React JS code.
  • 12. Pro’s and Con’s  Pro’s:  Updates process is optimized and accelerated.  JSX makes components/blocks code readable. It displays how components are plugged or combined with.  React’s data binding establishes conditions for creation dynamic applications.  Prompt rendering. Using comprises methods to minimize number of DOM operations helps to optimize updating process and accelerate it.  Testable. React’s native tools are offered for testing, debugging code.  Up to date. Facebook team supports the library. Advice or code samples can be given by Facebook community.  Using React+ES6/7, application gets high-tech and is suitable for high load systems.
  • 13. Pro’s and Con’s  Con’s:  Learning curve. Being not full-featured framework it is required in-depth knowledge for integration user interface free library into MVC framework.  View-orientedness is one of the cons of React JS. It should be found 'Model' and 'Controller' to resolve 'View' problem.  Not using isomorphic approach to exploit application leads to search engines indexing problems.  Lots of developers dislike JSX Reacts documentation, manuals are difficult for newcomers’ understanding.  Reacts large size library.
  • 14. Useful Links  React JS Environment setups  https://www.tutorialspoint.com/reactjs/reactjs_environment_setup.htm  Sample Examples  https://reactjs.org/community/examples.html
  • 15. Thanks If you feel that it is helpful and worthy to share with others then please like and share the same.