Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
TS + React: Small guide📖
Search
Abner Soares Alves Junior
September 27, 2018
Programming
29
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
TS + React: Small guide📖
A Small Guide to use TypeScript with React.
Abner Soares Alves Junior
September 27, 2018
More Decks by Abner Soares Alves Junior
See All by Abner Soares Alves Junior
Serverless Architecture: não significa "sem servidores"
abnersajr
0
67
Refinando suas interfaces com animações
abnersajr
1
480
Other Decks in Programming
See All in Programming
APNsからLive Activityを開始する話
yumnumm
0
170
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.2k
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
2
560
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
AmebaブログはKMPから卒業します
kmars0605
0
190
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
360
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
220
phperだってパンチカードでコーディングしたい
o0h
PRO
0
340
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.1k
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
How to build a perfect <img>
jonoalderson
1
6.1k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
KATA
mclloyd
PRO
35
16k
BBQ
matthewcrist
90
10k
Embracing the Ebb and Flow
colly
88
5.2k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
450
Between Models and Reality
mayunak
4
500
Optimising Largest Contentful Paint
csswizardry
37
4k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
Transcript
TS + React: Small guide
Sup Bro! I am Abner S. Alves Jr Developer at
Codeminer42 2
3 Type Safety
4 Weakly Typed Strongly Typed
5 Typing JavaScript
6 Flow Stats || https://github.com/facebook/flow
7 TypeScript Stats || https://github.com/Microsoft/TypeScript
8 TypeScript What is TS?
What is TS? • Typed superset of JavaScript • Compiles
to plain JavaScript • Open Source • Developed by Microsoft 9
10 Key Features
Key Features 11 Data Types Interfaces Modules Generics
Why use it 12 Tooling and Community Team and code
scalability Strict Null Checking Help avoiding issues in runtime
Common Issues 13
14 Invalid value to an object key
Read invalid object key 15
How to start 16
17 Installing react and react types npm install --save react
react-dom @types/react @types/react-dom
18 Installing TS and TS loader npm install --save-dev typescript
awesome-typescript-loader source-map-loader
19 Configure your webpack: http://bit.ly/react-webpack-ts
20 Configure your tsconfig.json: http://bit.ly/tsconfig-react
Using on React 21
22 React Class with TS
23 React SFC with TS
Useful Links 24 https://basarat.gitbooks.io/typescript/content/ https://github.com/Microsoft/TypeScript-React-Starter http://www.typescriptlang.org/play/ https://github.com/DefinitelyTyped/DefinitelyTyped
Estamos em busca de novos colegas:
[email protected]
Thanks! Any questions? @abnersajr speackerdeck.com/abnersajr
[email protected]
26