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
Ajax in React with axios
Search
takanorip
November 04, 2016
Technology
0
700
Ajax in React with axios
takanorip
November 04, 2016
Tweet
Share
More Decks by takanorip
See All by takanorip
「見せる」登壇資料デザインの極意
takanorip
2
660
Design System Documentation Tooling 2025
takanorip
3
2.5k
デザインエンジニアの延長にデザインマネージャーとしての可能性を探る
takanorip
1
980
Tools for Design Engineers other than LLM in the LLM era
takanorip
1
690
Bulletproof Design System with TypeScript
takanorip
7
4.8k
Eleventy3.0 で始める爆速個人ブログ開発!
takanorip
0
270
Webフォント選定の極意!フォントの基本から最新トレンドまで徹底解説
takanorip
5
1k
効果的な管理画面を デザインをするために 避けるべき5つの罠
takanorip
15
7.8k
社内管理画面のデザインもプロダクトデザイン
takanorip
5
2.2k
Other Decks in Technology
See All in Technology
GCASアップデート(202601-202603)
techniczna
0
230
Windows ファイル共有(SMB)を再確認する
murachiakira
PRO
0
200
今のWordPress の制作手法ってなにがあんねん?(改) / What’s the Deal with WordPress Development These Days?
tbshiki
0
520
スケールアップ企業でQA組織が機能し続けるための組織設計と仕組み〜ボトムアップとトップダウンを両輪としたアプローチ〜
tarappo
2
240
Microsoft “Adaptive Cloud” Update 2026年3月版
sdosamut
0
100
中央集権型を脱却した話 分散型をやめて、連邦型にたどり着くまで
sansantech
PRO
1
120
めちゃくちゃ開発するQAエンジニアになって感じたメリットとこれからの課題感
ryuhei0000yamamoto
0
180
Go 1.26 Genericsにおける再帰的型制約 / Recursive Type Constraints in Go 1.26 Generics
ryokotmng
0
140
Escape from Excel方眼紙 ~マークダウンで繋ぐ、人とAIの架け橋~ /nikkei-tech-talk44
nikkei_engineer_recruiting
0
100
大規模ECサイトのあるバッチのパフォーマンスを改善するために僕たちのチームがしてきたこと
panda_program
1
260
アーキテクチャモダナイゼーションを実現する組織
satohjohn
1
1.1k
2026年もソフトウェアサプライチェーンのリスクに立ち向かうために / Product Security Square #3
flatt_security
1
700
Featured
See All Featured
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
200
A designer walks into a library…
pauljervisheath
210
24k
For a Future-Friendly Web
brad_frost
183
10k
Designing for Performance
lara
611
70k
sira's awesome portfolio website redesign presentation
elsirapls
0
190
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
400
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
53k
A Soul's Torment
seathinner
5
2.5k
What's in a price? How to price your products and services
michaelherold
247
13k
Accessibility Awareness
sabderemane
0
83
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
110
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
Transcript
Ajax in React with axios @React&React Native入門者の会
自己紹介 • 大木尊紀(@takanorip) • 株式会社フォーデジットデザイン • フロントエンドエンジニア
今日話すこと
Reactで PromiseなAjaxやってみた という話
前提
React = Library (React ≠ FrameWork)
Ajaxは自前で 実装する必要がある
主な実装方法
jQuery
jQueryによる実装
Ajaxだけで使うには jQueryは重すぎ…
Promise ES2015
Promise • 非同期処理を抽象化したオブジェクト • ES2015で実装された • 書き方が統一されている • 詳しくは→JavaScript Promiseの本
axios
axios • Promise based HTTP client for the browser and
node.js • PromiseベースのHTTPクライアント • IEでもPromise使えるようになる
How To Use
How To Use 1. HFU ͰGETϦΫΤετ 2. σʔλऔಘޙʹUIFO Λ࣮ߦ 3.
Τϥʔͷ߹ DBUDI Λ࣮ߦ
ײ • jQueryʹ͘ΒͯεοΩϦ͔͚ΔͷͰخ͍͠ • JSONPରԠͯ͠ͳ͍ͷͰΫϩευϝΠϯରԠ ͢Δࡍҙ͕ඞཁ (I have decided not
to support JSONP as part of axios.) ということらしい…