SlideShare a Scribd company logo
React 101
@akts
What is it ?
A JavaScript library used to build html
Setup
Quickstart
$ yarn global add create-react-app
(or)
$ npm install -g create-react-app
Boilerplate
Creating our react app
$ cd ~/Projects
$ create-react-app pok-homes
$ cd pok-homes
$ yarn start
Structure
Our first Component
$ mkdir src/components
$ touch src/components/hello.js
Anatomy of a component
● Import React
● Define component
● Implement render()
● export component
Components are dumb
Pass data between components
return <div>Hello {this.props.name}</div>;
Planning our App
● App
● Homes
● Map
● Marker
Flexbox
<div class="app">
<div class="main">
<div class="search">
</div>
<div class="homes">
</div>
</div>
<div class="map">
</div>
</div>
.homes {
display: flex;
flex-wrap: wrap;
align-content: flex;
}
.home {
flex-basis: calc(50% - 20px);
margin: 10px;
}
.app {
display: flex;
}
.main {
flex-basis: 60%;
display: flex;
flex-direction: column;
}
.map {
flex-grow: 1;
height: 100vh;
top: 0;
position: sticky;
}
React state & Component constructor
constructor(props) {
super(props);
this.state = {
...
};
}
Ajax
componentDidMount() {
...
}
fetch('https://foo.bar/homes.json')
.then(resp => resp.json())
.then(data => {
console.log(data);
});
Map & Markers
https://github.com/google-map-react/google-map-react
Fin
● https://www.lewagon.com/blog/introduction-to-react-js
● https://www.youtube.com/watch?v=yZ0f1Apb5CU
● https://devhints.io/yarn
Happy Hacking

More Related Content

PDF
Redux Universal
PDF
React.js+Redux Workshops
PDF
Using redux
PDF
Designing applications with Redux
PDF
JS Chicago Meetup 2/23/16 - Redux & Routes
PPTX
React / Redux Architectures
PDF
React state managmenet with Redux
PDF
Advanced redux
Redux Universal
React.js+Redux Workshops
Using redux
Designing applications with Redux
JS Chicago Meetup 2/23/16 - Redux & Routes
React / Redux Architectures
React state managmenet with Redux
Advanced redux

What's hot (20)

PDF
React JS and Redux
PDF
React & Redux
PDF
Introduction to ReactJS
PDF
Introduction to React & Redux
PDF
State Models for React with Redux
PDF
Let's discover React and Redux with TypeScript
PPTX
Better web apps with React and Redux
PDF
Introduction to ReactJS and Redux
PPTX
Better React state management with Redux
PPTX
React & redux
PPTX
Redux training
PPTX
React with Redux
PDF
Redux js
PDF
React, Redux, ES2015 by Max Petruck
PPTX
ProvJS: Six Months of ReactJS and Redux
PPTX
Academy PRO: React JS. Redux & Tooling
PPTX
Introduction to react and redux
PPTX
Sufan presentation
PDF
React on es6+
PPTX
React vs Angular: ups & downs (speaker Oleksandr Kovalov, Binary Studio)
React JS and Redux
React & Redux
Introduction to ReactJS
Introduction to React & Redux
State Models for React with Redux
Let's discover React and Redux with TypeScript
Better web apps with React and Redux
Introduction to ReactJS and Redux
Better React state management with Redux
React & redux
Redux training
React with Redux
Redux js
React, Redux, ES2015 by Max Petruck
ProvJS: Six Months of ReactJS and Redux
Academy PRO: React JS. Redux & Tooling
Introduction to react and redux
Sufan presentation
React on es6+
React vs Angular: ups & downs (speaker Oleksandr Kovalov, Binary Studio)
Ad

Similar to Neoito — React 101 (20)

PDF
Le Wagon - React 101
PDF
React js
PPTX
React 101
PDF
Universal JS Web Applications with React - Web Summer Camp 2017, Rovinj (Work...
PPTX
Getting Started with React v16
PPTX
Let's react - Meetup
PDF
React Native
PPTX
React + Redux Introduction
PPT
Gradle: The Build system you have been waiting for
PPTX
Modern web app with REACT
PDF
Having Fun with Play
PDF
Integrating React.js Into a PHP Application
PPTX
20171108 PDN HOL React Basics
PDF
How To Integrate Native Android App With React Native.
PDF
The Exciting Future Of React
PDF
ClojureScript - Making Front-End development Fun again - John Stevenson - Cod...
PDF
React Native for multi-platform mobile applications
KEY
企业级软件的组件化和动态化开发实践
PPTX
How to create components in react js
KEY
Javascript unit testing, yes we can e big
Le Wagon - React 101
React js
React 101
Universal JS Web Applications with React - Web Summer Camp 2017, Rovinj (Work...
Getting Started with React v16
Let's react - Meetup
React Native
React + Redux Introduction
Gradle: The Build system you have been waiting for
Modern web app with REACT
Having Fun with Play
Integrating React.js Into a PHP Application
20171108 PDN HOL React Basics
How To Integrate Native Android App With React Native.
The Exciting Future Of React
ClojureScript - Making Front-End development Fun again - John Stevenson - Cod...
React Native for multi-platform mobile applications
企业级软件的组件化和动态化开发实践
How to create components in react js
Javascript unit testing, yes we can e big
Ad

More from Neoito (14)

PPTX
Neoito — NativeScript Best Coding Practices
PDF
Neoito — *NIX kungfu for web devs
PDF
Neoito — Secure coding practices
PDF
Neoito — How modern browsers work
PDF
Neoito — Scaling node.js
PPTX
Neoito — Grid layout
PDF
Neoito — Software licensing
PPTX
Neoito — GitLab for project management
PPTX
Neoito — Routing and navigation in Angular
PDF
Neoito — Animations in Angular 5
PDF
Neoito — A roadmap to Angular
PDF
Neoito — Intro to WebSockets
PDF
Neoito — Typography for the web
PPTX
Neoito — Design patterns and depenedency injection
Neoito — NativeScript Best Coding Practices
Neoito — *NIX kungfu for web devs
Neoito — Secure coding practices
Neoito — How modern browsers work
Neoito — Scaling node.js
Neoito — Grid layout
Neoito — Software licensing
Neoito — GitLab for project management
Neoito — Routing and navigation in Angular
Neoito — Animations in Angular 5
Neoito — A roadmap to Angular
Neoito — Intro to WebSockets
Neoito — Typography for the web
Neoito — Design patterns and depenedency injection

Recently uploaded (20)

PDF
System and Network Administraation Chapter 3
PPTX
L1 - Introduction to python Backend.pptx
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Introduction to Artificial Intelligence
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
top salesforce developer skills in 2025.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
ai tools demonstartion for schools and inter college
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
System and Network Administraation Chapter 3
L1 - Introduction to python Backend.pptx
Odoo Companies in India – Driving Business Transformation.pdf
2025 Textile ERP Trends: SAP, Odoo & Oracle
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Introduction to Artificial Intelligence
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
How Creative Agencies Leverage Project Management Software.pdf
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Design an Analysis of Algorithms II-SECS-1021-03
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
top salesforce developer skills in 2025.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
VVF-Customer-Presentation2025-Ver1.9.pptx
Reimagine Home Health with the Power of Agentic AI​
ai tools demonstartion for schools and inter college
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...

Neoito — React 101