Getting started with the reactjs, basics of reactjs, introduction of reactjs, core concepts of reactjs and comparison with the other libraries/frameworks
The document provides an introduction to React, a JavaScript library for building user interfaces. It discusses key React concepts like components, properties, state, one-way data flow, and JSX syntax. It also covers setting up a development environment with Create React App and shows how to create a basic React component with state. The target audience appears to be people new to React who want to learn the fundamentals.
This document provides an overview of React including:
- React is a JavaScript library created by Facebook for building user interfaces
- It uses virtual DOM to efficiently re-render components on updates rather than entire page
- React supports ES6 features and uses classes, arrow functions, and other syntax
- Popular tools for React include Create React App for setting up projects and React Dev Tools for debugging
Tutorial Videos: https://www.youtube.com/playlist?list=PLD8nQCAhR3tQ7KXnvIk_v_SLK-Fb2y_k_
Day 1 : Introduction to React, Babel and Webpack
Prerequisites of starting the workshop ( Basic understanding of Node & Express )
What is Virtual DOM?
What is React and why should we use it?
Install and set up React:
a-Using create-react-app
b-From scratch using Babel and Webpack. We will use Webpack Dev Server.
Day 2 : React Basic Concepts
Types of Components: Class-based and Functional based Components
Use of JSX
Parent, Child, and Nested Components
Difference between State and Props
Create and Handle Routes
Component Lifecycle Methods
Create a form and handling form inputs
Use of arrow functions and Spread Operator
Day 3: Advanced Concepts in React
Use of Refs
What are Higher Order Components( HOC )?
How to use HOC
Understanding Context in React
React is a declarative, efficient, and flexible JavaScript library for building user interfaces. It uses virtual DOM which improves performance and can render on both client and server. React encourages a component-based approach where UI is broken into independent reusable pieces that accept external data through properties. Components manage their own state which allows the UI to update over time in response to user input. This makes React code more predictable and easier to debug than traditional two-way data binding.
This document provides an overview of React including: key features like components, JSX, and unidirectional data flow; installation and technical requirements; the component lifecycle; differences from Angular; popular companies using React; and links to examples. It covers React concepts like states, props, and events. Questions from attendees are invited at the end.
This document provides an introduction to React.js, including:
- React.js uses a virtual DOM for improved performance over directly manipulating the real DOM. Components are used to build up the UI and can contain state that updates the view on change.
- The Flux architecture is described using React with unidirectional data flow from Actions to Stores to Views via a Dispatcher. This ensures state changes in a predictable way.
- Setting up React with tools like Browserify/Webpack for module bundling is discussed, along with additional topics like PropTypes, mixins, server-side rendering and React Native.
In this presentation, Prashant Sharma of Valuebound has talked about ReactJS - a JavaScript library for building user interfaces. Check out the agendas to know what is there for you.
----------------------------------------------------------
Get Socialistic
Our website: http://valuebound.com/
LinkedIn: http://bit.ly/2eKgdux
Facebook: https://www.facebook.com/valuebound/
Twitter: http://bit.ly/2gFPTi8
React (or React Js) is a declarative, component-based JS library to build SPA(single page applications) which was created by Jordan Walke, a software engineer at Facebook. It is flexible and can be used in a variety of projects.
This document contains an agenda and slides for a React workshop presented by Bojan Golubovic. The workshop covers the history and basics of React, including components, JSX, the virtual DOM, and React data flow. It also discusses related tools like Redux and React Router. The goal is to provide basic knowledge of React and how to build real-world applications with it.
The document provides an overview of React including its introduction, prerequisites, installation, fundamentals, components, life cycle, routing, hooks, Redux, projects, testing, comparison to Angular, and tips for React developers. It discusses key React concepts such as JSX, props, state, events, DOM, and virtual DOM.
This document provides an introduction and overview of Reactjs including:
1. Reactjs core concepts including components, virtual DOM, and JSX
2. React components are self-contained reusable blocks and many companies have open sourced React component libraries
3. The React lifecycle methods for components including initialization, update, and destruction
React JS is a JavaScript library for building user interfaces. It uses a virtual DOM to efficiently update the real DOM and render user interfaces from components. Components are reusable pieces of UI that accept input data via properties but maintain private state data. The lifecycle of a component involves initialization, updating due to state/prop changes, and unmounting. React uses a single-directional data flow and the concept of components makes code modular and reusable.
Introduction to React JS for beginners | Namespace ITnamespaceit
React is a JavaScript library for building user interfaces using reusable components. It is used to create single page applications that dynamically update the current page with new data from the server. React uses a component-based approach and one-way data binding to build interfaces simply and allow for easy testing. Key concepts in React include components, props, state, lifecycles, hooks, JSX, and the virtual DOM. Major companies using React include Facebook, Netflix, Instagram, and WhatsApp.
This document introduces React, describing it as a JavaScript library for building user interfaces by rendering components rather than mutating the DOM directly. It discusses how React uses a virtual DOM for fast re-rendering, building components instead of templates, and the use of JSX syntax to write HTML-like code. Components have state and props, and the whole app re-renders when state changes to guarantee updates.
React is a JavaScript library for building user interfaces. It was created by Facebook and is best for building dynamic websites like chat applications. React uses a virtual DOM for efficiently updating the view after data changes. Components are the building blocks of React and can contain state and props. The document provides an example of a simple component class and demonstrates how to add state and props. It also includes links to example code and MicroPyramid's social media profiles.
The document provides an introduction to ReactJS, including:
- ReactJS is a JavaScript library developed by Facebook for building user interfaces.
- It uses virtual DOM for rendering UI components efficiently. Only updated components are re-rendered.
- Components are the basic building blocks of React apps. They accept input and return React elements to describe what should appear on the screen.
- The main steps to set up a React app are installing React and ReactDOM libraries, adding JSX syntax, and rendering components onto the DOM using ReactDOM.render().
React is a JavaScript library for building user interfaces. It uses a component-based approach where UI is broken into independent, reusable pieces called components. Components are like functions that return markup describing part of a view. React uses a virtual DOM to efficiently update the real DOM by only making necessary changes. This improves performance by avoiding expensive DOM operations and minimizing DOM access. Components receive data and callbacks through properties and local state is updated using setState(), triggering a re-render of changed parts of the UI.
The document summarizes Kiran Abburi's presentation on React. It covers:
1. The agenda includes basics of React, composition, data flow, JSX, React APIs, and building a todo app.
2. React is a JavaScript library for building user interfaces and uses a component-based approach to build encapsulated pieces.
3. Data in React flows in a uni-directional way through properties (props) and state, where props are passed from parent to child components and state is internal to a component.
This document provides an introduction to Redux, including what it is, its core principles and building blocks. Redux is a predictable state container for JavaScript apps that can be used with frameworks like React, Angular and Vue. It follows the Flux architecture pattern and is based on three principles - state is immutable, state can only be changed through actions, and changes are made with pure functions called reducers. The main building blocks are actions, reducers and the store.
React is a JavaScript library for building user interfaces using reusable components. The core concepts of React include JSX, components, unidirectional data flow, and the virtual DOM. Everything in React is components that can interact with each other and maintain state. Data flows unidirectionally via state and props from parent to child components. The virtual DOM selectively re-renders the UI when the state changes, improving performance. Redux follows a similar unidirectional data flow architecture, with data moving from actions to reducers to the store.
This document provides an introduction to React.js, including:
- React is a JavaScript library for building user interfaces and was developed by Facebook. It is the VIEW component in MVC architecture.
- Key features and benefits of React include being fast, modular, scalable, flexible, and popular due to its employability. Large companies like Facebook use React.
- Core concepts of React include JSX, components, unidirectional data flow, and the virtual DOM which improves performance compared to traditional frameworks. Components are reusable pieces that make up the entire application.
React JS; all concepts. Contains React Features, JSX, functional & Class comp...Karmanjay Verma
This ppt contains all concepts of React JS. This contains React Features JSX, functional & Class component, Hooks. PPT includes sample code also for each defination in comment.
For more detail and source code
https://github.com/KPCodeLearning/React-Learning-App
https://kpcodelearning.github.io/React-Learning-App/
https://www.linkedin.com/in/karmanjayverma/
React and Flux life cycle with JSX, React Router and Jest Unit TestingEswara Kumar Palakollu
Understanding of React, JSX, Flux, react-router and Jest for React and Flux Unit Testing.
Detailed view of react life cycle and flux life cycle along with React life cycle.
React with MVC pattern and React + Flux with MVC pattern explained.
ReactJS is a JavaScript library for building user interfaces. It uses a virtual DOM and only updates parts of the real DOM that changed. React uses a component-based architecture where data flows unidirectionally via props and state. Lifecycle methods allow components to handle state changes. Components are built with JSX syntax and can be nested to build up an application from reusable pieces.
At Lia Infraservice we create Dynamic Websites. Become a front-end React JS developer and be a part of our tech-savvy Web App Development Company in Chennai.
Presentation on "An Introduction to ReactJS"Flipkart
The PowerPoint presentation titled "An Introduction to ReactJS" provides a beginner-friendly overview of ReactJS, a popular JavaScript library used for building user interfaces. This presentation aims to introduce ReactJS to individuals who may not have prior technical knowledge or experience with web development.
The presentation begins with a brief introduction to ReactJS, explaining that it is a JavaScript library created by Facebook for building interactive and dynamic user interfaces. It highlights ReactJS's key features, such as component-based architecture and virtual DOM.
Next, the presentation focuses on the benefits of using ReactJS. It explains that ReactJS enhances the user experience by enabling the creation of highly responsive and efficient web applications. It emphasizes React's ability to manage complex UI components and handle data updates seamlessly.
To make the concept more relatable, the presentation provides real-world examples of popular websites and applications that use ReactJS. This helps the audience understand how ReactJS is implemented in real-world scenarios and its impact on user interface development.
Furthermore, the presentation covers the basic concepts of ReactJS, such as components, props, and state. It explains that ReactJS follows a modular approach, where the UI is divided into reusable components, making it easier to manage and update the application. It also gives a high-level overview of how props and state are used to manage data flow within React components.
Throughout the presentation, visual aids such as diagrams, screenshots, and simple illustrations are used to enhance understanding and engage the audience. The focus is on simplifying complex concepts and making them accessible to non-technical individuals.
Finally, the presentation concludes by highlighting the vast community support and resources available for learning ReactJS. It encourages the audience to explore further and provides recommendations for online tutorials, documentation, and learning platforms.
Overall, the "An Introduction to ReactJS" PowerPoint presentation aims to provide a non-technical audience with a basic understanding of ReactJS, its benefits, and its relevance in modern web development.
Mildaintrainings offers advanced ReactJS Interview Questions 2019 that helps you in cracking your interview & acquire your dream career as ReactJS Developer. Visit in this link :- https://mildaintrainings.com/blogs/react-js-interview-questions-answers/
If you want to get trained in React and wish to develop interesting UI’s on your own, then check out the ReactJS with Redux Certification Training by MildainTrainings, a trusted online learning company with a network of more than 50,000 satisfied learners spread across the globe.
This document provides an overview of several core technologies used in React applications, including React, Flux, Node.js, Browserify, and Gulp. It discusses that React is a JavaScript library for building user interfaces and rendering UI as HTML. It uses virtual DOM for efficient updates. Flux is an architecture for uni-directional data flow. Node.js is used for server-side JavaScript with npm. Browserify allows using Node modules in the browser. Gulp is a build system for tasks like bundling files.
1. The document discusses adding React components to ASP.NET MVC applications using React JS.NET.
2. It explains how React JS.NET allows bootstrapping a React component tree from a C# view, allowing ASP.NET MVC apps to contain React component trees.
3. The document provides an overview of key aspects like how ReactDOM.Render() is called, using JSX files, fetching data from server-side MVC code, and rendering components on the server-side for performance.
React JS is a JavaScript library for building reusable UI components. It uses a virtual DOM for efficient rendering. Components are the building blocks of React, and can be either functional or class-based. Functional components are simpler while class components can maintain state. Props are passed down from parent to child components while state is local. The virtual DOM improves performance by only updating the real DOM with actual changes.
This document provides an overview of React, a JavaScript library for building user interfaces. It discusses what React is, why it is useful, when to use it, and its key features and components. React allows building of reusable UI components in a declarative way. It uses a virtual DOM for better performance and can render on both client and server sides. Key advantages include high performance with large data changes, reusability, and ease of building large, complex UIs. The document also provides examples of building a simple React app in steps and references for further information.
React JS is a declarative, efficient, and flexible JavaScript library for building reusable UI components. It uses a virtual DOM which works like a lightweight copy of the real DOM to improve performance by only updating what changes. Components are independent and reusable bits of code that serve the same purpose as functions but return HTML. There are two main types of components - functional components which are simple functions, and class components which can maintain their own state and work together.
React is a JavaScript library for building user interfaces that uses a virtual DOM for improved performance. It uses a one-way data flow and declarative components. The virtual DOM allows React to efficiently update the real DOM by only making necessary changes. Components in React encapsulate elements and can have state and props. JSX is recommended for writing React components and compiles to plain JavaScript.
This document discusses using React and Redux to build an app for managing conferences. It describes building a conference scheduling app with React components to define the UI and Redux to manage shared state. Redux uses a central store with actions and reducers to update the state, which is then mapped to props and passed to React components. Key aspects covered include creating React components, action creators, reducers, connecting React to Redux with the connect function, and rendering the app with a Provider component wrapping the connected components.
This document provides an overview and introduction to React, a JavaScript library for building user interfaces. It discusses why React is used, how to set up a React environment, core React concepts like components, props, state, lifecycles and events. It also introduces React Native for building native mobile apps with React. The document emphasizes learning React through hands-on examples and practice.
This document discusses progressive web apps (PWAs). It defines PWAs as applications that take advantage of new technologies to provide the best of mobile sites and native apps to users. PWAs are reliable, fast, and engaging. They work across all devices and platforms without installation. Core aspects of PWAs include application shells, web app manifests, and service workers. Major browsers support key PWAs features like caching, adding to home screens, and push notifications. Popular companies using PWAs include Flipkart, Paper Planes, and Housing. The document encourages building and migrating to PWAs.
The document discusses service workers, which are scripts that run in the background of a browser to enable features that do not require a web page or user interaction. Service workers act as a programmable network proxy to control how network requests from web pages are handled, and allow developers to take sites offline or implement push notifications and background syncing. The document provides an overview of how service workers work, what is needed to use them, and suggests additional capabilities like push notifications and background syncing that can be implemented with service workers.
Web components are the future. This is the time to think beyond the modules and start creating your applications components based. These are my slides from the talk I gave in Microsoft Gurgaon at Javascript Sunday organized by JSLovers.
PostCSS is a tool for transforming CSS with JavaScript plugins. It allows developers to write CSS in a more modular fashion and use future CSS syntax today. PostCSS parses CSS into an abstract syntax tree, passes it through plugins for processing, and outputs new CSS. Popular PostCSS plugins include Autoprefixer for adding vendor prefixes, CSSNano for optimization, and CSSNext for future CSS syntax. PostCSS can be used with build tools like Grunt and Gulp and has a large ecosystem of over 200 plugins.
CSS3 Flexbox allows elements to be laid out in a flexible manner to fully fill available space or adapt to different screen sizes and devices. It improves on floats and eliminates some layout problems. Flexbox uses flex items within a flex container, with properties like flex-direction, justify-content, align-items and flex-wrap controlling item alignment along the main and cross axes. Common uses include navigation bars, image galleries, and responsive layouts. Browser support is good with prefixes in older browsers.
SASS (Syntactically Awesome Style Sheets) is a CSS pre-processor that allows for nesting, variables, mixins and other powerful features to help write cleaner, more maintainable CSS. It helps achieve the DRY principle by eliminating repeated code and allowing logical structuring. Some key SASS features include nesting, variables and scopes, mixins, extends and interpolation. SASS files are compiled to normal CSS files for use in browsers. Using SASS can help large development teams work on CSS in a more organized and efficient way.
This document provides an introduction and overview of HTML5. It begins with an agenda that outlines topics like the history of HTML, what HTML5 is, why we need it, new tags in HTML5, and compatibility with Internet Explorer. The document then defines HTML4, XHTML, and HTML5 and explains how HTML5 is the newest version that includes new semantic tags, offline storage, multimedia, and graphics capabilities. It highlights reasons for using HTML5 like improved semantics, new APIs, better interactivity, and performance. The document lists some new tags in HTML5 like header, footer, nav, section, aside, and canvas. It also provides a skeleton of an HTML5 document and discusses using plugins or JavaScript/CSS to
Mastering OnlyFans Clone App Development: Key Strategies for SuccessDavid Wilson
Dive into the critical elements of OnlyFans clone app development, from understanding user needs and designing engaging platforms to implementing robust monetization strategies and ensuring scalability. Discover how RichestSoft can guide you through the development process, offering expert insights and proven strategies to help you succeed in the competitive market of content monetization.
Choosing the Best Outlook OST to PST Converter: Key Features and Considerationswebbyacad software
When looking for a good software utility to convert Outlook OST files to PST format, it is important to find one that is easy to use and has useful features. WebbyAcad OST to PST Converter Tool is a great choice because it is simple to use for anyone, whether you are tech-savvy or not. It can smoothly change your files to PST while keeping all your data safe and secure. Plus, it can handle large amounts of data and convert multiple files at once, which can save you a lot of time. It even comes with 24*7 technical support assistance and a free trial, so you can try it out before making a decision. Whether you need to recover, move, or back up your data, Webbyacad OST to PST Converter is a reliable option that gives you all the support you need to manage your Outlook data effectively.
Sonkoloniya is a web-based realtime code editor with hosting functionality developed by Subham Mandal from ONEprojukti. Sonkoloniya enables users to write and run HTML, CSS, and JavaScript code in real-time. It features a user-friendly interface with separate code editing panes, live preview, console output, and file management capabilities.
Types of Weaving loom machine & it's technologyldtexsolbl
Welcome to the presentation on the types of weaving loom machines, brought to you by LD Texsol, a leading manufacturer of electronic Jacquard machines. Weaving looms are pivotal in textile production, enabling the interlacing of warp and weft threads to create diverse fabrics. Our exploration begins with traditional handlooms, which have been in use since ancient times, preserving artisanal craftsmanship. We then move to frame and pit looms, simple yet effective tools for small-scale and traditional weaving.
Advancing to modern industrial applications, we discuss power looms, the backbone of high-speed textile manufacturing. These looms, integral to LD Texsol's product range, offer unmatched productivity and consistent quality, essential for large-scale apparel, home textiles, and technical fabrics. Rapier looms, another modern marvel, use rapier rods for versatile and rapid weaving of complex patterns.
Next, we explore air and water jet looms, known for their efficiency in lightweight fabric production. LD Texsol's state-of-the-art electronic Jacquard machines exemplify technological advancements, enabling intricate designs and patterns with precision control. Lastly, we examine dobby looms, ideal for medium-complexity patterns and versatile fabric production.
This presentation will deepen your understanding of weaving looms, their applications, and the innovations LD Texsol brings to the textile industry. Join us as we weave through the history, technology, and future of textile production. Visit our website www.ldtexsol.com for more information.
The Zaitechno Handheld Raman Spectrometer is a powerful and portable tool for rapid, non-destructive chemical analysis. It utilizes Raman spectroscopy, a technique that analyzes the vibrational fingerprint of molecules to identify their chemical composition. This handheld instrument allows for on-site analysis of materials, making it ideal for a variety of applications, including:
Material identification: Identify unknown materials, minerals, and contaminants.
Quality control: Ensure the quality and consistency of raw materials and finished products.
Pharmaceutical analysis: Verify the identity and purity of pharmaceutical compounds.
Food safety testing: Detect contaminants and adulterants in food products.
Field analysis: Analyze materials in the field, such as during environmental monitoring or forensic investigations.
The Zaitechno Handheld Raman Spectrometer is easy to use and features a user-friendly interface. It is compact and lightweight, making it ideal for field applications. With its rapid analysis capabilities, the Zaitechno Handheld Raman Spectrometer can help you improve efficiency and productivity in your research or quality control workflows.
Communications Mining Series - Zero to Hero - Session 3DianaGray10
This is a continuation to previous session focused on Model usage and adapting for Analytics and Automation usecases. We will understand how to use the Model for automation usecase with a demo.
• Model Usage and Maintenance
• Analytics Vs Automation Usecases
• Demo of Model usage
• Q/A
The History of Embeddings & Multimodal EmbeddingsZilliz
Frank Liu will walk through the history of embeddings and how we got to the cool embedding models used today. He'll end with a demo on how multimodal RAG is used.
Uncharted Together- Navigating AI's New Frontiers in LibrariesBrian Pichman
Journey into the heart of innovation where the collaborative spirit between information professionals, technologists, and researchers illuminates the path forward through AI's uncharted territories. This opening keynote celebrates the unique potential of special libraries to spearhead AI-driven transformations. Join Brian Pichman as we saddle up to ride into the history of Artificial Intelligence, how its evolved over the years, and how its transforming today's frontiers. We will explore a variety of tools and strategies that leverage AI including some new ideas that may enhance cataloging, unlock personalized user experiences, or pioneer new ways to access specialized research. As with any frontier exploration, we will confront shared ethical challenges and explore how joint efforts can not only navigate but also shape AI's impact on equitable access and information integrity in special libraries. For the remainder of the conference, we will equip you with a "digital compass" where you can submit ideas and thoughts of what you've learned in sessions for a final reveal in the closing keynote.
Redefining Cybersecurity with AI CapabilitiesPriyanka Aash
In this comprehensive overview of Cisco's latest innovations in cybersecurity, the focus is squarely on resilience and adaptation in the face of evolving threats. The discussion covers the imperative of tackling Mal information, the increasing sophistication of insider attacks, and the expanding attack surfaces in a hybrid work environment. Emphasizing a shift towards integrated platforms over fragmented tools, Cisco introduces its Security Cloud, designed to provide end-to-end visibility and robust protection across user interactions, cloud environments, and breaches. AI emerges as a pivotal tool, from enhancing user experiences to predicting and defending against cyber threats. The blog underscores Cisco's commitment to simplifying security stacks while ensuring efficacy and economic feasibility, making a compelling case for their platform approach in safeguarding digital landscapes.
Discovery Series - Zero to Hero - Task Mining Session 1DianaGray10
This session is focused on providing you with an introduction to task mining. We will go over different types of task mining and provide you with a real-world demo on each type of task mining in detail.
2. What is React.js?
A JavaScript library for building user interfaces. Reactjs is
created by the Facebook for the V of MVC by reusable and
interactive UI components.
3. Who is using Reactjs?
• Facebook – Partial
• Instagram
• Khan Academy - Partial
4. Why React.js?
• V(view) of MVC - Solution of View in MVC
• 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.
• UI Components - Reusable and interactive components
• SEO Friendly - Components are client side as well as server side render hence they are SEO
friendly and no 3rd party plugin required
• Coding is simpler because of JSX
• Reactjs own debugger
• React Native is going to be next big thing
• Big minds are backing Reactjs
5. Core Concept of Reactjs
Unidirectional
Data Flow
ComponentsJSX
Virtual DOM
6. JSX
JSX - javascript XML syntax transform.
It helps in making our writing code easier and faster. JSX
lets us writeHTML (not 100%) with XML based object
representation.
7. Line 8-19 : Telling browser the code between the script block is JSX and not normal
JavaScript.
Line no 12 : This is how we write the HTML in JSX
8. If you don’t want to use JSX, you can still work in react however the code would be like
the above as compare to the last slide without JSX
9. Components
In Reactjs the whole application is break into the
components. Components are interactive, reusable and
stageful too.
10. Line 9 : We are creating our component with name MyApp
Line 18 : We are calling/rendering our component in the content div on the HTML
page
11. Unidirectional Data Flow
- As compare to other MVC frameworks/Library Reactjs use the concept of
unidirectional data flow.
- In Reactjs application the data flow from the parent to the children
component by the state and the props.
- Only one parent is responsible to update the states and passing the value to
the children components via props.
- setState is used to update/refresh the UI when the state change and the
value can be pass to the children component by the this.props
12. Virtual DOM
• Reactjs uses the concept of the virtual DOM.
• It selectively render the subtree of DOM elements into the
rendering of the DOM on state change
• 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.
• This way it is creating a virtual DOM and improving the
performance too
• Can be render on server and sync on Local
15. Components
• Everything in reactjs is components. The core building
blocks of React application is components only.
Components interact with each other and maintain the
state too. In Reactjs whole application is need to be break
into the component only.
17. props
• In Reactjs props are like the HTML Properties. They are used to
pass the data between the components or via the states. In
Reactjs the props can be accessed by this.props.propsname
• Props can be define by name=“value”. To access this we have
to call this.props.name
18. React.render(<MyComponent name=“Neha” />) : name is the one of the props of
the component MyComponent . To access the value of the props in the react we
use {this.props.name}.
19. states
Every component has a State object. Can be set by using setState.
setState triggers UI updates and to get the initial state before the
setState : getInitialState.getDefaultProps
20. Reactjs maintained the state – getIntialState, setState, getDefaultProps.
In the above example we are getting the count variable to 5 and accessing it by
{this.state.count}
21. Component Lifecycle
• componentWillMount – Client and server side
componenet Will Occur only once (before)
• componentDidMount – Only once (after)
• shouldComponentUpdate – Return value
determines weather component should update
• componentWillUnmount – Before unmounting
component
22. Events
• Reactjs has the events that are attached with
the components as the props of the
components and can trigger methods.
23. We have created a custom method clickCount and onClick of the button we are
calling it onClick = {this.clickCount}
24. Unidriectional Data Flow
• In reactjs, application data flows unidirectional via the state
and props not like angular js where we have 2-way data
binding. Which means in multiple component hierarchy , a
common parent component should manage the state and pass
it down the chain by props.
• setState - state should be updated by setState to ensure UI
will refresh/update
• this.props – to pass the value to the child components
25. Angular Backbone React
Type MV* MVC V
Technology HTML/CSS/JS/Ang
ular
HTML/CSS/JS/bac
kbone
JSX
Core MVC MVC Components
View HTML HTML Virtual DOM
Data Flowing 2 way binding - Unidirectional
Creator Google - FB* & Instagram
Architchure - - React Native &
Flux
SEO Support Phantom js - SEO friendly