Skip to content

Instantly share code, notes, and snippets.

View comadaihiep92's full-sized avatar
🤟

Lan Tran comadaihiep92

🤟
View GitHub Profile
@comadaihiep92
comadaihiep92 / api.ts
Created April 1, 2023 08:56 — forked from JaysonChiang/api.ts
Example of Axios with TypeScript
import axios, { AxiosError, AxiosResponse } from 'axios';
import token from './somewhere';
interface Todo {
id: string;
title: string;
}
interface User {
id: string;
import * as qs from "qs";
import { PathLike } from "fs";
export const apiConfig = {
returnRejectedPromiseOnError: true,
withCredentials: true,
timeout: 30000,
baseURL: "https://jsonplaceholder.typicode.com/",
headers: {
common: {
@comadaihiep92
comadaihiep92 / reactjs-interview-tips.md
Created July 6, 2020 12:36 — forked from paulnguyen-mn/reactjs-interview-tips.md
Bí kíp cho buổi phỏng vấn ReactJS thành công 🎉

Bí kíp cho buổi phỏng vấn ReactJS thành công 🎉

From unplash.com

AGENGA:

  1. Một vài lưu ý chung
  2. Ôn tập kiến thức JS/ReactJS
  3. Cày thuật toán, giải thuật
  4. Tìm hiểu về công ty mà mình xin ứng tuyển