Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
An introduction to React development
Search
Eugene Oskin
January 20, 2018
Programming
0
39
An introduction to React development
Eugene Oskin
January 20, 2018
Tweet
Share
More Decks by Eugene Oskin
See All by Eugene Oskin
REST API. Django, Ruby on Rails, Play! Framework
evgeneoskin
0
89
Introduction to gRPC
evgeneoskin
0
98
GrailInventory – Advanced Backend Development
evgeneoskin
0
37
Bracing Calculator
evgeneoskin
1
68
emotional intelligence, part 2
evgeneoskin
0
39
Office temperature
evgeneoskin
0
34
Parse platform
evgeneoskin
0
100
Hubot
evgeneoskin
0
51
An introduction to iOS development
evgeneoskin
0
43
Other Decks in Programming
See All in Programming
After go func(): Goroutines Through a Beginner’s Eye
97vaibhav
0
390
なぜGoのジェネリクスはこの形なのか? Featherweight Goが明かす設計の核心
ryotaros
7
1.1k
タスクの特性や不確実性に応じた最適な作業スタイルの選択(ペアプロ・モブプロ・ソロプロ)と実践 / Optimal Work Style Selection: Pair, Mob, or Solo Programming.
honyanya
3
170
『毎日の移動』を支えるGoバックエンド内製開発
yutautsugi
2
250
iOSエンジニア向けの英語学習アプリを作る!
yukawashouhei
0
200
Range on Rails ―「多重範囲型」という新たな選択肢が、複雑ロジックを劇的にシンプルにしたワケ
rizap_tech
0
480
CSC509 Lecture 06
javiergs
PRO
0
260
私はどうやって技術力を上げたのか
yusukebe
43
18k
Software Architecture
hschwentner
6
2.3k
なぜあの開発者はDevRelに伴走し続けるのか / Why Does That Developer Keep Running Alongside DevRel?
nrslib
3
410
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
350
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
120
Featured
See All Featured
Become a Pro
speakerdeck
PRO
29
5.5k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Building a Modern Day E-commerce SEO Strategy
aleyda
44
7.8k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.5k
The Straight Up "How To Draw Better" Workshop
denniskardys
238
140k
Automating Front-end Workflow
addyosmani
1371
200k
Keith and Marios Guide to Fast Websites
keithpitt
411
23k
Bash Introduction
62gerente
615
210k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Reflections from 52 weeks, 52 projects
jeffersonlam
353
21k
Git: the NoSQL Database
bkeepers
PRO
431
66k
Thoughts on Productivity
jonyablonski
70
4.9k
Transcript
An introduction to React development
What is React?
Glossary • Component • JSx • Functional programming • State
• React Redux • React Router
I will not talk about • testing - e2e, unit
• Deployment • ReactNative • ReactVR • ServerSide Rendering
How to start • CodePen • JSFiddle • etc •
Create-react-app • StackBlitz • Stafolds / Project templates
Simple React app structure app $ tree . ├── components
│ ├── App.jsx │ └── Note.jsx ├── index.jsx └── main.css
Architecture
ToolKit • Browser • VCCode :rocket: • Yarn • ES8
• Eslint • Flow • Webpack • jest
None
React Router
React Router index.js import React from 'react' import { render
} from 'react-dom' import { BrowserRouter } from 'react-router-dom' import App from './components/App'; render(( <BrowserRouter> <App /> </BrowserRouter> ), document.getElementById('root'));
React Router inside the App import { Roster, Schedule }
from './components' const Main = () => ( <main> <Switch> <Route exact path='/' component={Home}/> <Route path='/roster' component={Roster}/> </Switch> </main> ) export default Main
React Redux
Redux Redux is a predictable state container for JavaScript apps.
None
None
State { todos: [{ text: 'Learn Redux', completed: true },
{ text: 'Learn React', completed: false }], visibilityFilter: 'SHOW_COMPLETED' }
Actions { type: 'ADD_TODO', text: 'Go to swimming pool' }
{ type: 'TOGGLE_TODO', index: 1 } { type: 'SET_VISIBILITY_FILTER', filter: 'SHOW_ALL' }
None
References • React Router Tutorial • Redux Glossary • EggHead
courses • Create-react-app • CodePen • JSFiddle