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
46
0
Share
An introduction to React development
Eugene Oskin
January 20, 2018
More Decks by Eugene Oskin
See All by Eugene Oskin
Local Models for Coding
evgeneoskin
0
11
REST API. Django, Ruby on Rails, Play! Framework
evgeneoskin
0
98
Introduction to gRPC
evgeneoskin
0
110
GrailInventory – Advanced Backend Development
evgeneoskin
0
46
Bracing Calculator
evgeneoskin
1
75
emotional intelligence, part 2
evgeneoskin
0
47
Office temperature
evgeneoskin
0
42
Parse platform
evgeneoskin
0
110
Hubot
evgeneoskin
0
61
Other Decks in Programming
See All in Programming
LLM Plugin for Node-REDの利用方法と開発について
404background
0
150
初めてのRubyKaigiはこう見えた
jellyfish700
0
410
Inside Stream API
skrb
1
600
AIエージェントと協働するCLI開発 — BunとOpenClawで学んだこと
yoshikouki
1
230
正しくソフトウェアを作る、前提を疑うための認知の視点 / doubt-premise
minodriven
17
5.3k
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
4
440
ビジネスモデルから紐解く、AI+型駆動開発
hirokiomote
2
5.2k
TypeSpec で繋ぐ複数プロダクトの型安全
maroon8021
1
320
Transactional Change Stream Processing With Debezium and Apache Flink
gunnarmorling
1
160
DynamoDBには集計系のクエリがないけどなんとかしたい
musan
1
120
開発体験を左右するライブラリの API 設計 - GraphQL スキーマ構築ライブラリから考える #tskaigi
izumin5210
2
1.5k
dRuby over BLE
makicamel
2
290
Featured
See All Featured
Are puppies a ranking factor?
jonoalderson
1
3.5k
Being A Developer After 40
akosma
91
590k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
600
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Designing for humans not robots
tammielis
254
26k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
160
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.3k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
Un-Boring Meetings
codingconduct
0
300
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
180
Embracing the Ebb and Flow
colly
88
5.1k
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