# React axios get API * 首先要先下載 npm i axios * 並import使用。  * 使用useState儲存get api的資料。 * 建立一個 function 並在裡面寫 get api 的邏輯。 * 使用 async 來讓確保get資料時,會等資料get到才顯示。 * 用axios來get api資料。 * 最後使用useEffect來讓畫面在一開始render時就執行取API的function。  * 使用map把資料取出。 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up