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
TS + React: Small guide📖
Search
Abner Soares Alves Junior
September 27, 2018
Programming
0
27
TS + React: Small guide📖
A Small Guide to use TypeScript with React.
Abner Soares Alves Junior
September 27, 2018
Tweet
Share
More Decks by Abner Soares Alves Junior
See All by Abner Soares Alves Junior
Serverless Architecture: não significa "sem servidores"
abnersajr
0
54
Refinando suas interfaces com animações
abnersajr
1
470
Other Decks in Programming
See All in Programming
速いWebフレームワークを作る
yusukebe
5
1.7k
アセットのコンパイルについて
ojun9
0
130
意外と簡単!?フロントエンドでパスキー認証を実現する WebAuthn
teamlab
PRO
2
780
そのAPI、誰のため? Androidライブラリ設計における利用者目線の実践テクニック
mkeeda
2
2.8k
FindyにおけるTakumi活用と脆弱性管理のこれから
rvirus0817
0
540
テストコードはもう書かない:JetBrains AI Assistantに委ねる非同期処理のテスト自動設計・生成
makun
0
550
時間軸から考えるTerraformを使う理由と留意点
fufuhu
16
4.8k
MCPでVibe Working。そして、結局はContext Eng(略)/ Working with Vibe on MCP And Context Eng
rkaga
5
2.3k
AIと私たちの学習の変化を考える - Claude Codeの学習モードを例に
azukiazusa1
11
4.4k
奥深くて厄介な「改行」と仲良くなる20分
oguemon
1
570
プロパティベーステストによるUIテスト: LLMによるプロパティ定義生成でエッジケースを捉える
tetta_pdnt
0
4.3k
The Past, Present, and Future of Enterprise Java with ASF in the Middle
ivargrimstad
0
180
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
74
5k
Code Reviewing Like a Champion
maltzj
525
40k
The Invisible Side of Design
smashingmag
301
51k
What's in a price? How to price your products and services
michaelherold
246
12k
Large-scale JavaScript Application Architecture
addyosmani
513
110k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.1k
Fireside Chat
paigeccino
39
3.6k
Scaling GitHub
holman
463
140k
Faster Mobile Websites
deanohume
309
31k
Agile that works and the tools we love
rasmusluckow
330
21k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
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