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
92
Introduction to gRPC
evgeneoskin
0
98
GrailInventory – Advanced Backend Development
evgeneoskin
0
38
Bracing Calculator
evgeneoskin
1
69
emotional intelligence, part 2
evgeneoskin
0
40
Office temperature
evgeneoskin
0
35
Parse platform
evgeneoskin
0
100
Hubot
evgeneoskin
0
52
An introduction to iOS development
evgeneoskin
0
43
Other Decks in Programming
See All in Programming
AIによる高速開発をどう制御するか? ガードレール設置で開発速度と品質を両立させたチームの事例
tonkotsuboy_com
7
2.3k
Architectural Extensions
denyspoltorak
0
280
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
690
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
170
「ブロックテーマでは再現できない」は本当か?
inc2734
0
970
Package Management Learnings from Homebrew
mikemcquaid
0
220
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
430
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
Oxlint JS plugins
kazupon
1
920
CSC307 Lecture 06
javiergs
PRO
0
680
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
190
MDN Web Docs に日本語翻訳でコントリビュート
ohmori_yusuke
0
650
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
40
2.3k
Color Theory Basics | Prateek | Gurzu
gurzu
0
200
Navigating Team Friction
lara
192
16k
Un-Boring Meetings
codingconduct
0
200
Paper Plane
katiecoart
PRO
0
46k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
49
Heart Work Chapter 1 - Part 1
lfama
PRO
5
35k
Ethics towards AI in product and experience design
skipperchong
2
190
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
66
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
910
Google's AI Overviews - The New Search
badams
0
900
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
37k
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